Share via


ToolLocationHelper.GetPathToBuildToolsFile Method

Definition

Overloads

GetPathToBuildToolsFile(String, String, DotNetFrameworkArchitecture)

Given the name of a file and a ToolsVersion, return the path to that file in the MSBuild tools path for that ToolsVersion

GetPathToBuildToolsFile(String, String)

Given the name of a file and a ToolsVersion, return the path to that file in the MSBuild tools path for that ToolsVersion

GetPathToBuildToolsFile(String, String, DotNetFrameworkArchitecture)

Source:
ToolLocationHelper.cs

Given the name of a file and a ToolsVersion, return the path to that file in the MSBuild tools path for that ToolsVersion

public:
 static System::String ^ GetPathToBuildToolsFile(System::String ^ fileName, System::String ^ toolsVersion, Microsoft::Build::Utilities::DotNetFrameworkArchitecture architecture);
public static string GetPathToBuildToolsFile (string fileName, string toolsVersion, Microsoft.Build.Utilities.DotNetFrameworkArchitecture architecture);
static member GetPathToBuildToolsFile : string * string * Microsoft.Build.Utilities.DotNetFrameworkArchitecture -> string
Public Shared Function GetPathToBuildToolsFile (fileName As String, toolsVersion As String, architecture As DotNetFrameworkArchitecture) As String

Parameters

fileName
String

The file to find the path to

toolsVersion
String

The ToolsVersion in which to find the file

architecture
DotNetFrameworkArchitecture

The architecture of the build tools file to get

Returns

The path to the file in the tools path folder of the appropriate ToolsVersion if it exists, otherwise null.

Applies to

GetPathToBuildToolsFile(String, String)

Source:
ToolLocationHelper.cs

Given the name of a file and a ToolsVersion, return the path to that file in the MSBuild tools path for that ToolsVersion

public:
 static System::String ^ GetPathToBuildToolsFile(System::String ^ fileName, System::String ^ toolsVersion);
public static string GetPathToBuildToolsFile (string fileName, string toolsVersion);
static member GetPathToBuildToolsFile : string * string -> string
Public Shared Function GetPathToBuildToolsFile (fileName As String, toolsVersion As String) As String

Parameters

fileName
String

The file to find the path to

toolsVersion
String

The ToolsVersion in which to find the file

Returns

The path to the file in the tools path folder of the appropriate ToolsVersion if it exists, otherwise null.

Applies to