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.StringThe 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.