Export (0) Print
Expand All

ToolLocationHelper.GetPathToWindowsSdk Method

.NET Framework 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
)

Parameters

version
Type: Microsoft.Build.Utilities.TargetDotNetFrameworkVersion

Target .NET Framework version

visualStudioVersion
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
Show:
© 2015 Microsoft