ToolLocationHelper.GetPathToWindowsSdkFile Method (String, TargetDotNetFrameworkVersion, VisualStudioVersion, DotNetFrameworkArchitecture)

 
Note: This API is now obsolete.

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

MSBuild is now included in Visual Studio instead of the .NET Framework.You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Namespace:   Microsoft.Build.Utilities
Assembly:  Microsoft.Build.Utilities.Core (in Microsoft.Build.Utilities.Core.dll)

[ObsoleteAttribute("Consider using GetPlatformSDKLocationFile instead")]
public static string GetPathToWindowsSdkFile(
	string fileName,
	TargetDotNetFrameworkVersion version,
	VisualStudioVersion visualStudioVersion,
	DotNetFrameworkArchitecture architecture
)

Parameters

fileName
Type: System.String

The name of the file being requested.

version
Type: Microsoft.Build.Utilities.TargetDotNetFrameworkVersion

Target .NET Framework version.

visualStudioVersion
Type: Microsoft.Build.Utilities.VisualStudioVersion

Version of Visual Studio associated with the requested SDK.

architecture
Type: Microsoft.Build.Utilities.DotNetFrameworkArchitecture

Desired architecture of the resultant file.

Return Value

Type: System.String

Path to the appropriate Windows SDK file

Return to top
Show: