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

C#
public static string GetDotNetFrameworkSdkInstallKeyValue(Microsoft.Build.Utilities.TargetDotNetFrameworkVersion version, Microsoft.Build.Utilities.VisualStudioVersion visualStudioVersion);

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

.NET Framework 4.8.1 i druge verzije
Proizvod Verzije
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

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.

C#
public static string GetDotNetFrameworkSdkInstallKeyValue(Microsoft.Build.Utilities.TargetDotNetFrameworkVersion version);

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

.NET Framework 4.8.1 i druge verzije
Proizvod Verzije
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1