Export (0) Print
Expand All

ToolLocationHelper.GetPathToWindowsSdk Method

.NET Framework 4.6 and 4.5

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.

Namespace:  Microsoft.Build.Utilities
Assembly:  Microsoft.Build.Utilities.v4.0 (in Microsoft.Build.Utilities.v4.0.dll)

public static string GetPathToWindowsSdk(
	TargetDotNetFrameworkVersion version,
	VisualStudioVersion visualStudioVersion


Type: Microsoft.Build.Utilities.TargetDotNetFrameworkVersion

Target .NET Framework version

Type: Microsoft.Build.Utilities.VisualStudioVersion

Version of Visual Studio associated with the SDK.

Return Value

Type: System.String
Path to the appropriate Windows SDK location

.NET Framework

Supported in: 4.6, 4.5
© 2015 Microsoft