Share via


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.

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

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

GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion, VisualStudioVersion)

Source:
ToolLocationHelper.cs

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

public:
 static System::String ^ GetDotNetFrameworkSdkRootRegistryKey(Microsoft::Build::Utilities::TargetDotNetFrameworkVersion version, Microsoft::Build::Utilities::VisualStudioVersion visualStudioVersion);
public static string GetDotNetFrameworkSdkRootRegistryKey (Microsoft.Build.Utilities.TargetDotNetFrameworkVersion version, Microsoft.Build.Utilities.VisualStudioVersion visualStudioVersion);
static member GetDotNetFrameworkSdkRootRegistryKey : Microsoft.Build.Utilities.TargetDotNetFrameworkVersion * Microsoft.Build.Utilities.VisualStudioVersion -> string
Public Shared Function GetDotNetFrameworkSdkRootRegistryKey (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