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
serviceProvider
Type: System.IServiceProviderThe IServiceProvider associated with the current hive.
msbuildVersion
Type: System.StringThe specific build of MSBuild for which to get the path.
Return Value
Type: System.String
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.