IMSBuildProjectDataServiceFactory.GetMSBuildProjectDataService Method

Definition

Gets the MSBuild project data service for a particular configuration.

If the parameter passed is null, then the service for active configuration is returned.

public Microsoft.VisualStudio.Workspace.Extensions.MSBuild.IMSBuildProjectDataService GetMSBuildProjectDataService (Microsoft.VisualStudio.Workspace.IWorkspace workspace, string projectFile, string projectConfiguration, System.Collections.Generic.IDictionary<string,string> projectProperties = default);
public Microsoft.VisualStudio.Workspace.Extensions.MSBuild.IMSBuildProjectDataService GetMSBuildProjectDataService (Microsoft.VisualStudio.Workspace.IWorkspace workspace, string projectFile, string? projectConfiguration, System.Collections.Generic.IDictionary<string,string>? projectProperties = default);
abstract member GetMSBuildProjectDataService : Microsoft.VisualStudio.Workspace.IWorkspace * string * string * System.Collections.Generic.IDictionary<string, string> -> Microsoft.VisualStudio.Workspace.Extensions.MSBuild.IMSBuildProjectDataService
Public Function GetMSBuildProjectDataService (workspace As IWorkspace, projectFile As String, projectConfiguration As String, Optional projectProperties As IDictionary(Of String, String) = Nothing) As IMSBuildProjectDataService

Parameters

workspace
IWorkspace

Workspace instance

projectFile
String

Path of the project file, possibly relative to the solution file

projectConfiguration
String

Project configuration

projectProperties
IDictionary<String,String>

Project properties

Returns

MSBuild project data service instance

Applies to