Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

ToolLocationHelper.GetPathToBuildTools Method (String)

Given a ToolsVersion, return the path to the MSBuild tools for that ToolsVersion. The only version supported is “12.0”.

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

Syntax

'Declaration
Public Shared Function GetPathToBuildTools ( _
 toolsVersion As String _
) As String
public static string GetPathToBuildTools(
 string toolsVersion
)
public:
static String^ GetPathToBuildTools(
 String^ toolsVersion
)
static member GetPathToBuildTools : 
 toolsVersion:string -> string
public static function GetPathToBuildTools(
 toolsVersion : String
) : String

Parameters

  • toolsVersion
    Type: System.String

    The ToolsVersion for which to get the tools path.

Return Value

Type: System.String
The tools path folder of the appropriate ToolsVersion if it exists, otherwise null.

.NET Framework Security

See Also

Reference

ToolLocationHelper Class

GetPathToBuildTools Overload

Microsoft.Build.Utilities Namespace

Additional resources