ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey Method

Definition

Returns the full name of the .NET Framework SDK root registry key.

Overloads

GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion)

Returns the full name of the .NET Framework SDK root registry key. 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.

GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion, VisualStudioVersion)

Returns the full name of the .NET Framework SDK root registry key

GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion)

Source:
ToolLocationHelper.cs

Returns the full name of the .NET Framework SDK root registry key. 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 GetDotNetFrameworkSdkRootRegistryKey(Microsoft.Build.Utilities.TargetDotNetFrameworkVersion version);

Parameters

version
TargetDotNetFrameworkVersion

Version of the targeted .NET Framework

Returns

A string representation of the registry key root which indicates where to find the .NETFramework sdk.

Applies to

MSBuild 17 und andere Versionen
Produkt Versionen
MSBuild 15, 16, 17
MSBuild (.NET Core) 15, 16, 17

GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion, VisualStudioVersion)

Source:
ToolLocationHelper.cs

Returns the full name of the .NET Framework SDK root registry key

C#
public static string GetDotNetFrameworkSdkRootRegistryKey(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

MSBuild 17 und andere Versionen
Produkt Versionen
MSBuild 15, 16, 17
MSBuild (.NET Core) 15, 16, 17