ToolLocationHelper.GetPathToWindowsSdkFile Method (String, TargetDotNetFrameworkVersion, VisualStudioVersion)

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

Syntax

'Declaration
<ObsoleteAttribute("Consider using GetPlatformSDKLocationFile instead")> _
Public Shared Function GetPathToWindowsSdkFile ( _
    fileName As String, _
    version As TargetDotNetFrameworkVersion, _
    visualStudioVersion As VisualStudioVersion _
) As String
[ObsoleteAttribute("Consider using GetPlatformSDKLocationFile instead")]
public static string GetPathToWindowsSdkFile(
    string fileName,
    TargetDotNetFrameworkVersion version,
    VisualStudioVersion visualStudioVersion
)
[ObsoleteAttribute(L"Consider using GetPlatformSDKLocationFile instead")]
public:
static String^ GetPathToWindowsSdkFile(
    String^ fileName, 
    TargetDotNetFrameworkVersion version, 
    VisualStudioVersion visualStudioVersion
)
[<ObsoleteAttribute("Consider using GetPlatformSDKLocationFile instead")>]
static member GetPathToWindowsSdkFile : 
        fileName:string * 
        version:TargetDotNetFrameworkVersion * 
        visualStudioVersion:VisualStudioVersion -> string
public static function GetPathToWindowsSdkFile(
    fileName : String, 
    version : TargetDotNetFrameworkVersion, 
    visualStudioVersion : VisualStudioVersion
) : String

Parameters

  • fileName
    Type: System.String

    The name of the file being requested.

Return Value

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

.NET Framework Security

See Also

Reference

ToolLocationHelper Class

GetPathToWindowsSdkFile Overload

Microsoft.Build.Utilities Namespace