Utilities.GetMsBuildPath Method (IServiceProvider, String)

Gets the path for MSBuild from the registry under the current hive.

Namespace:  Microsoft.VisualStudio.Package
Assembly:  MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)

Syntax

'宣言
Public Shared Function GetMsBuildPath ( _
    serviceProvider As IServiceProvider, _
    msbuildVersion As String _
) As String
'使用
Dim serviceProvider As IServiceProvider
Dim msbuildVersion As String
Dim returnValue As String

returnValue = Utilities.GetMsBuildPath(serviceProvider, _
    msbuildVersion)
public static string GetMsBuildPath(
    IServiceProvider serviceProvider,
    string msbuildVersion
)
public:
static String^ GetMsBuildPath(
    IServiceProvider^ serviceProvider, 
    String^ msbuildVersion
)
public static function GetMsBuildPath(
    serviceProvider : IServiceProvider, 
    msbuildVersion : String
) : String

Parameters

  • msbuildVersion
    Type: System.String

    The specific build of MSBuild for which to get the path.

Return Value

Type: System.String

Permissions

See Also

Reference

Utilities Class

Utilities Members

GetMsBuildPath Overload

Microsoft.VisualStudio.Package Namespace