ToolLocationHelper.GetPathToBuildTools Method (String, DotNetFrameworkArchitecture)
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, _
architecture As DotNetFrameworkArchitecture _
) As String
public static string GetPathToBuildTools(
string toolsVersion,
DotNetFrameworkArchitecture architecture
)
public:
static String^ GetPathToBuildTools(
String^ toolsVersion,
DotNetFrameworkArchitecture architecture
)
static member GetPathToBuildTools :
toolsVersion:string *
architecture:DotNetFrameworkArchitecture -> string
public static function GetPathToBuildTools(
toolsVersion : String,
architecture : DotNetFrameworkArchitecture
) : String
Parameters
toolsVersion
Type: System.StringThe ToolsVersion for which to get the tools path.
architecture
Type: Microsoft.Build.Utilities.DotNetFrameworkArchitectureThe architecture of the build tools location to get.
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.