Partilhar via


IBuildService.BuildProjectAsync Método

Definição

Criar um projeto invocando ações de contexto de build de um provedor

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)

Parâmetros

projectFile
String

O contexto do arquivo de projeto

projectFileTarget
String

Destino de projeto opcional

buildConfiguration
String

A configuração de build

buildContextType
Guid

O tipo de contexto de build desejado

progress
IProgress<IFileContextActionProgressUpdate>

Um monitor de progresso

cancellationToken
CancellationToken

Token de cancelamento opcional

Retornos

Tarefa de conclusão com o resultado de êxito do build

Aplica-se a