共用方式為


IBuildService.BuildProjectAsync 方法

定義

從提供者叫用建置內容動作來建置專案

public:
 System::Threading::Tasks::Task<bool> ^ BuildProjectAsync(System::String ^ projectFile, System::String ^ projectFileTarget, System::String ^ buildConfiguration, Guid buildContextType, IProgress<Microsoft::VisualStudio::Workspace::IFileContextActionProgressUpdate ^> ^ progress, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<bool> BuildProjectAsync (string projectFile, string projectFileTarget, string buildConfiguration, Guid buildContextType, IProgress<Microsoft.VisualStudio.Workspace.IFileContextActionProgressUpdate> progress, System.Threading.CancellationToken cancellationToken);
abstract member BuildProjectAsync : string * string * string * Guid * IProgress<Microsoft.VisualStudio.Workspace.IFileContextActionProgressUpdate> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Function BuildProjectAsync (projectFile As String, projectFileTarget As String, buildConfiguration As String, buildContextType As Guid, progress As IProgress(Of IFileContextActionProgressUpdate), cancellationToken As CancellationToken) As Task(Of Boolean)

參數

projectFile
String

項目檔內容

projectFileTarget
String

選擇性項目目標

buildConfiguration
String

組建組態

buildContextType
Guid

所需的組建內容類型

progress
IProgress<IFileContextActionProgressUpdate>

進度監視器

cancellationToken
CancellationToken

選擇性取消標記

傳回

建置成功結果的完成工作

適用於