Udostępnij za pośrednictwem


ToolLocationHelper.GetDotNetFrameworkSdkInstallKeyValue Method

Definition

Gets the name of the value under the GetDotNetFrameworkRootRegistryKey(TargetDotNetFrameworkVersion) that contains the .NET Framework SDK installation path.

Overloads

GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion, VisualStudioVersion)

Name of the value of GetDotNetFrameworkRootRegistryKey that contains the SDK install root path

GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion)

Name of the value of GetDotNetFrameworkRootRegistryKey that contains the SDK install root path. When targeting .NET 3.5 or above, looks in the locations associated with Visual Studio 2010. If you wish to target the .NET Framework SDK that ships with Visual Studio Dev11 or later, please use the override that specifies a VisualStudioVersion.

GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion, VisualStudioVersion)

Source:
ToolLocationHelper.cs

Name of the value of GetDotNetFrameworkRootRegistryKey that contains the SDK install root path

public:
 static System::String ^ GetDotNetFrameworkSdkInstallKeyValue(Microsoft::Build::Utilities::TargetDotNetFrameworkVersion version, Microsoft::Build::Utilities::VisualStudioVersion visualStudioVersion);
public static string GetDotNetFrameworkSdkInstallKeyValue (Microsoft.Build.Utilities.TargetDotNetFrameworkVersion version, Microsoft.Build.Utilities.VisualStudioVersion visualStudioVersion);
static member GetDotNetFrameworkSdkInstallKeyValue : Microsoft.Build.Utilities.TargetDotNetFrameworkVersion * Microsoft.Build.Utilities.VisualStudioVersion -> string
Public Shared Function GetDotNetFrameworkSdkInstallKeyValue (version As TargetDotNetFrameworkVersion, visualStudioVersion As VisualStudioVersion) As String

Parameters

version
TargetDotNetFrameworkVersion

Version of the targeted .NET Framework

visualStudioVersion
VisualStudioVersion

Version of Visual Studio the requested SDK is associated with

Returns

Returns String.

Applies to

GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion)

Source:
ToolLocationHelper.cs

Name of the value of GetDotNetFrameworkRootRegistryKey that contains the SDK install root path. When targeting .NET 3.5 or above, looks in the locations associated with Visual Studio 2010. If you wish to target the .NET Framework SDK that ships with Visual Studio Dev11 or later, please use the override that specifies a VisualStudioVersion.

public:
 static System::String ^ GetDotNetFrameworkSdkInstallKeyValue(Microsoft::Build::Utilities::TargetDotNetFrameworkVersion version);
public static string GetDotNetFrameworkSdkInstallKeyValue (Microsoft.Build.Utilities.TargetDotNetFrameworkVersion version);
static member GetDotNetFrameworkSdkInstallKeyValue : Microsoft.Build.Utilities.TargetDotNetFrameworkVersion -> string
Public Shared Function GetDotNetFrameworkSdkInstallKeyValue (version As TargetDotNetFrameworkVersion) As String

Parameters

version
TargetDotNetFrameworkVersion

Version of the targeted .NET Framework

Returns

A string containing the name of the registry key value under the GetDotNetFrameworkRootRegistryKey(TargetDotNetFrameworkVersion) that contains the .NET Framework SDK installation path.

Applies to