ToolLocationHelper.GetPathToWindowsSdkFile Method

Definition

Returns the path to a file in 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.

Overloads

GetPathToWindowsSdkFile(String, TargetDotNetFrameworkVersion, VisualStudioVersion)

Returns the path to a file in 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.

GetPathToWindowsSdkFile(String, TargetDotNetFrameworkVersion, VisualStudioVersion, DotNetFrameworkArchitecture)

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.

GetPathToWindowsSdkFile(String, TargetDotNetFrameworkVersion, VisualStudioVersion)

Returns the path to a file in 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 ^ GetPathToWindowsSdkFile(System::String ^ fileName, Microsoft::Build::Utilities::TargetDotNetFrameworkVersion version, Microsoft::Build::Utilities::VisualStudioVersion visualStudioVersion);
public static string GetPathToWindowsSdkFile (string fileName, Microsoft.Build.Utilities.TargetDotNetFrameworkVersion version, Microsoft.Build.Utilities.VisualStudioVersion visualStudioVersion);
static member GetPathToWindowsSdkFile : string * Microsoft.Build.Utilities.TargetDotNetFrameworkVersion * Microsoft.Build.Utilities.VisualStudioVersion -> string

Parameters

fileName
String

The name of the file being requested.

version
TargetDotNetFrameworkVersion

Target .NET Framework version.

visualStudioVersion
VisualStudioVersion

Version of Visual Studio associated with the SDK.

Returns

Path to the appropriate Windows SDK file

GetPathToWindowsSdkFile(String, TargetDotNetFrameworkVersion, VisualStudioVersion, DotNetFrameworkArchitecture)

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.

public:
 static System::String ^ GetPathToWindowsSdkFile(System::String ^ fileName, Microsoft::Build::Utilities::TargetDotNetFrameworkVersion version, Microsoft::Build::Utilities::VisualStudioVersion visualStudioVersion, Microsoft::Build::Utilities::DotNetFrameworkArchitecture architecture);
public static string GetPathToWindowsSdkFile (string fileName, Microsoft.Build.Utilities.TargetDotNetFrameworkVersion version, Microsoft.Build.Utilities.VisualStudioVersion visualStudioVersion, Microsoft.Build.Utilities.DotNetFrameworkArchitecture architecture);
static member GetPathToWindowsSdkFile : string * Microsoft.Build.Utilities.TargetDotNetFrameworkVersion * Microsoft.Build.Utilities.VisualStudioVersion * Microsoft.Build.Utilities.DotNetFrameworkArchitecture -> string

Parameters

fileName
String

The name of the file being requested.

version
TargetDotNetFrameworkVersion

Target .NET Framework version.

visualStudioVersion
VisualStudioVersion

Version of Visual Studio associated with the requested SDK.

architecture
DotNetFrameworkArchitecture

Desired architecture of the resultant file.

Returns

Path to the appropriate Windows SDK file

Applies to