Freigeben über


IBuildService.BuildAsync Methode

Definition

Inkrementelles Erstellen eines Projekts durch Aufrufen von Buildkontextaktionen von einem Anbieter

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)

Parameter

projectFile
String

Der Projektdateikontext

projectFileTarget
String

Optionales Projektziel

selectedReferences
HashSet<String>

Liste der zu erstellenden Stammprojektverweise, wenn NULL – alle Verweise

excludedProjects
HashSet<String>

Liste ausgeschlossener Projekte (in der Regel vom Benutzer entladene Projekte im Projektmappenfall)

buildConfigurationContext
IBuildConfigurationContext

Der Buildkonfigurationskontext

buildType
BuildType

Buildtyp (Build, Neuerstellung usw.)

enableIncrementalBuild
Boolean

Aktivieren des inkrementellen Builds (UTD-Überprüfung)

progress
IProgress<IFileContextActionProgressUpdate>

Ein Statusmonitor

cancellationToken
CancellationToken

Optionales Abbruchtoken

Gibt zurück

Informationen zum inkrementellen Build

Gilt für: