Compartilhar via


IBuildService.GetBuildConfigurationContextsAsync Method

Definition

Get all file contexts that match a specific target project build configuration

public:
 System::Threading::Tasks::Task<System::Collections::Generic::IReadOnlyList<System::Linq::IGrouping<Lazy<Microsoft::VisualStudio::Workspace::IFileContextProvider ^, Microsoft::VisualStudio::Workspace::IFileContextProviderMetadata ^> ^, Microsoft::VisualStudio::Workspace::FileContext ^> ^> ^> ^ GetBuildConfigurationContextsAsync(System::String ^ projectFile, System::String ^ projectFileTarget, Guid contextType, System::String ^ targetProjectBuildConfiguration);
public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<System.Linq.IGrouping<Lazy<Microsoft.VisualStudio.Workspace.IFileContextProvider,Microsoft.VisualStudio.Workspace.IFileContextProviderMetadata>,Microsoft.VisualStudio.Workspace.FileContext>>> GetBuildConfigurationContextsAsync (string projectFile, string projectFileTarget, Guid contextType, string targetProjectBuildConfiguration);
public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<System.Linq.IGrouping<Lazy<Microsoft.VisualStudio.Workspace.IFileContextProvider,Microsoft.VisualStudio.Workspace.IFileContextProviderMetadata>,Microsoft.VisualStudio.Workspace.FileContext>>> GetBuildConfigurationContextsAsync (string projectFile, string? projectFileTarget, Guid contextType, string? targetProjectBuildConfiguration);
abstract member GetBuildConfigurationContextsAsync : string * string * Guid * string -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<System.Linq.IGrouping<Lazy<Microsoft.VisualStudio.Workspace.IFileContextProvider, Microsoft.VisualStudio.Workspace.IFileContextProviderMetadata>, Microsoft.VisualStudio.Workspace.FileContext>>>
Public Function GetBuildConfigurationContextsAsync (projectFile As String, projectFileTarget As String, contextType As Guid, targetProjectBuildConfiguration As String) As Task(Of IReadOnlyList(Of IGrouping(Of Lazy(Of IFileContextProvider, IFileContextProviderMetadata), FileContext)))

Parameters

projectFile
String

The project file context

projectFileTarget
String

Optional project target

contextType
Guid

The desired context type

targetProjectBuildConfiguration
String

Optional target project build configuration

Returns

File Contexts grouped by provider

Applies to