Partilhar via


IBuildService.BuildAsync Método

Definição

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

public:
 System::Threading::Tasks::Task<Microsoft::VisualStudio::Workspace::Build::BuildProjectIncrementalResult ^> ^ BuildAsync(System::String ^ projectFile, System::String ^ projectFileTarget, System::Collections::Generic::HashSet<System::String ^> ^ selectedReferences, System::Collections::Generic::HashSet<System::String ^> ^ excludedProjects, Microsoft::VisualStudio::Workspace::Build::IBuildConfigurationContext ^ buildConfigurationContext, Microsoft::VisualStudio::Workspace::Build::BuildType buildType, bool enableIncrementalBuild, IProgress<Microsoft::VisualStudio::Workspace::IFileContextActionProgressUpdate ^> ^ progress, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<Microsoft.VisualStudio.Workspace.Build.BuildProjectIncrementalResult> BuildAsync (string projectFile, string projectFileTarget, System.Collections.Generic.HashSet<string> selectedReferences, System.Collections.Generic.HashSet<string> excludedProjects, Microsoft.VisualStudio.Workspace.Build.IBuildConfigurationContext buildConfigurationContext, Microsoft.VisualStudio.Workspace.Build.BuildType buildType, bool enableIncrementalBuild, IProgress<Microsoft.VisualStudio.Workspace.IFileContextActionProgressUpdate> progress, System.Threading.CancellationToken cancellationToken);
abstract member BuildAsync : string * string * System.Collections.Generic.HashSet<string> * System.Collections.Generic.HashSet<string> * Microsoft.VisualStudio.Workspace.Build.IBuildConfigurationContext * Microsoft.VisualStudio.Workspace.Build.BuildType * bool * IProgress<Microsoft.VisualStudio.Workspace.IFileContextActionProgressUpdate> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.Workspace.Build.BuildProjectIncrementalResult>
Public Function BuildAsync (projectFile As String, projectFileTarget As String, selectedReferences As HashSet(Of String), excludedProjects As HashSet(Of String), buildConfigurationContext As IBuildConfigurationContext, buildType As BuildType, enableIncrementalBuild As Boolean, progress As IProgress(Of IFileContextActionProgressUpdate), cancellationToken As CancellationToken) As Task(Of BuildProjectIncrementalResult)

Parâmetros

projectFile
String

O contexto do arquivo de projeto

projectFileTarget
String

Destino do projeto opcional

selectedReferences
HashSet<String>

lista de referências de projeto raiz para compilação, se nula – todas as referências

excludedProjects
HashSet<String>

lista de projetos excluídos (normalmente projetos descarregados pelo usuário no caso da solução)

buildConfigurationContext
IBuildConfigurationContext

O contexto de configuração de build

buildType
BuildType

tipo de build (build, recompilação etc.)

enableIncrementalBuild
Boolean

Habilitar build incremental (marcar UTD)

progress
IProgress<IFileContextActionProgressUpdate>

Um monitor de progresso

cancellationToken
CancellationToken

Token de cancelamento opcional

Retornos

Informações sobre o build incremental

Aplica-se a