IBuildService.GetBuildConfigurationContextsAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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