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)
Obsolete.

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

GetPathToWindowsSdkFile(String, TargetDotNetFrameworkVersion, VisualStudioVersion)

Source:
ToolLocationHelper.cs

Caution

Consider using GetPlatformSDKLocationFile instead

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.

C#
[System.Obsolete("Consider using GetPlatformSDKLocationFile instead")]
public static string GetPathToWindowsSdkFile(string fileName, Microsoft.Build.Utilities.TargetDotNetFrameworkVersion version, Microsoft.Build.Utilities.VisualStudioVersion visualStudioVersion);
C#
public static string GetPathToWindowsSdkFile(string fileName, Microsoft.Build.Utilities.TargetDotNetFrameworkVersion version, Microsoft.Build.Utilities.VisualStudioVersion visualStudioVersion);

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

Attributes

Applies to

.NET Framework 4.8.1 ve diğer sürümler
Ürün Sürümler
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

GetPathToWindowsSdkFile(String, TargetDotNetFrameworkVersion, VisualStudioVersion, DotNetFrameworkArchitecture)

Source:
ToolLocationHelper.cs

Caution

Consider using GetPlatformSDKLocationFile instead

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.

C#
[System.Obsolete("Consider using GetPlatformSDKLocationFile instead")]
public static string GetPathToWindowsSdkFile(string fileName, Microsoft.Build.Utilities.TargetDotNetFrameworkVersion version, Microsoft.Build.Utilities.VisualStudioVersion visualStudioVersion, Microsoft.Build.Utilities.DotNetFrameworkArchitecture architecture);
C#
public static string GetPathToWindowsSdkFile(string fileName, Microsoft.Build.Utilities.TargetDotNetFrameworkVersion version, Microsoft.Build.Utilities.VisualStudioVersion visualStudioVersion, Microsoft.Build.Utilities.DotNetFrameworkArchitecture architecture);

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.

architecture
DotNetFrameworkArchitecture

Desired architecture of the resultant file.

Returns

Path to the appropriate Windows SDK file

Attributes

Applies to

.NET Framework 4.8.1 ve diğer sürümler
Ürün Sürümler
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1