Aracılığıyla paylaş


ToolLocationHelper.GetPathToWindowsSdk Method

Definition

Caution

Consider using GetPlatformSDKLocation instead

Returns the path to the Windows SDK for the desired .NET Framework and Visual Studio version. Note that this is only supported for a targeted .NET Framework version of 4.5 and above.

public:
 static System::String ^ GetPathToWindowsSdk(Microsoft::Build::Utilities::TargetDotNetFrameworkVersion version, Microsoft::Build::Utilities::VisualStudioVersion visualStudioVersion);
[System.Obsolete("Consider using GetPlatformSDKLocation instead")]
public static string GetPathToWindowsSdk (Microsoft.Build.Utilities.TargetDotNetFrameworkVersion version, Microsoft.Build.Utilities.VisualStudioVersion visualStudioVersion);
public static string GetPathToWindowsSdk (Microsoft.Build.Utilities.TargetDotNetFrameworkVersion version, Microsoft.Build.Utilities.VisualStudioVersion visualStudioVersion);
[<System.Obsolete("Consider using GetPlatformSDKLocation instead")>]
static member GetPathToWindowsSdk : Microsoft.Build.Utilities.TargetDotNetFrameworkVersion * Microsoft.Build.Utilities.VisualStudioVersion -> string
static member GetPathToWindowsSdk : Microsoft.Build.Utilities.TargetDotNetFrameworkVersion * Microsoft.Build.Utilities.VisualStudioVersion -> string
Public Shared Function GetPathToWindowsSdk (version As TargetDotNetFrameworkVersion, visualStudioVersion As VisualStudioVersion) As String

Parameters

version
TargetDotNetFrameworkVersion

Target .NET Framework version

visualStudioVersion
VisualStudioVersion

Version of Visual Studio associated with the SDK.

Returns

Path to the appropriate Windows SDK location

Attributes

Applies to