CompileWorkflowTask 類別

定義

警告

The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*

代表 MSBuild 編譯工作流程的任務。 此類別無法獲得繼承。

public ref class CompileWorkflowTask sealed : Microsoft::Build::Utilities::Task, Microsoft::Build::Framework::ITask
public sealed class CompileWorkflowTask : Microsoft.Build.Utilities.Task, Microsoft.Build.Framework.ITask
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public sealed class CompileWorkflowTask : Microsoft.Build.Utilities.Task, Microsoft.Build.Framework.ITask
type CompileWorkflowTask = class
    inherit Task
    interface ITask
[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type CompileWorkflowTask = class
    inherit Task
    interface ITask
Public NotInheritable Class CompileWorkflowTask
Inherits Task
Implements ITask
繼承
CompileWorkflowTask
屬性
實作

備註

Note

此數據會討論已過時的類型和命名空間。 欲了解更多資訊,請參閱 Windows Workflow Foundation 4.5 中的 Deprecated Types。

此類別擴展了Microsoft Build框架中的 Task 類。 Microsoft Build 框架會呼叫此類別的方法,以在編譯 Windows Workflow Foundation 類型的 C# 與 Visual Basic 專案時,自訂建置流程。 它支援將 .xoml 檔案編譯成中間程式碼檔案(可選 C# 或 Visual Basic)。 工作流程在編譯前會經過驗證。

建構函式

名稱 Description
CompileWorkflowTask()
已淘汰.

初始化 CompileWorkflowTask 類別的新執行個體。

屬性

名稱 Description
AssemblyName
已淘汰.

取得或設定編譯過程中所建置的組件名稱。

BuildingProject
已淘汰.

會取得或設定一個值,表示這個建置任務目前是否正在建置工作流程專案。

CompilationOptions
已淘汰.

取得或設定編譯選項。

DelaySign
已淘汰.

取得或設定一個值,指示工作流程組件是否會被延遲簽署。

HostObject
已淘汰.

當編譯工作流程任務被呼叫時,會取得或設定用於取得Visual Studio主機提供的服務的 Object

Imports
已淘汰.

取得或設定一個字串,包含所有匯入指令以編譯工作流程。

KeepTemporaryFiles
已淘汰.

會得到一個布林值,決定是否要保留暫存檔案。

KeyContainer
已淘汰.

取得或設定用於簽署工作流程組件的公鑰/私鑰容器名稱。

KeyFile
已淘汰.

取得或設定用於簽署工作流程組件的檔案路徑。

OutputFiles
已淘汰.

它會獲得一組來自正在編譯工作流程專案的輸出檔案路徑陣列。

ProjectDirectory
已淘汰.

取得或設定一個包含工作流程專案目錄路徑的字串。

ProjectExtension
已淘汰.

取得或設定包含工作流程專案副檔名的字串。

ReferenceFiles
已淘汰.

取得或設定一組路徑陣列,作為正在編譯工作流程專案的參考檔案。

ResourceFiles
已淘汰.

取得或設定一組路徑陣列,指向正在編譯的工作流程專案所需的資源檔案。

RootNamespace
已淘汰.

取得或設定正在編譯工作流程專案的根命名空間。

SourceCodeFiles
已淘汰.

在正在編譯的工作流程專案中,取得或設定一組路徑陣列,指向 Visual Basic 或 C# 檔案。

TargetFramework
已淘汰.

取得或設定目前專案的目標 .NET 框架。

TemporaryFiles
已淘汰.

會取得由建置任務為正在編譯工作流程專案建立的暫存檔案路徑陣列。

WorkflowMarkupFiles
已淘汰.

取得或設定一組路徑陣列,指向正在編譯的工作流程專案的 Workflow Markup 檔案。

方法

名稱 Description
Execute()
已淘汰.

執行工作流程任務的編譯。

明確介面實作

名稱 Description
ITask.HostObject
已淘汰.

在 Microsoft Build 框架中取得或設定 Host Object。

適用於