共用方式為


ToolLocationHelper.GetPathToBuildToolsFile Method

Include Protected Members
Include Inherited Members

Given the name of a file and a ToolsVersion, return the path to that file in the MSBuild tools path for that ToolsVersion. For the msbuildtaskhost.exe and tracker.exe tools, the only version supported is “12.0”.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public methodStatic member 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. For the msbuildtaskhost.exe and tracker.exe tools, the only version supported is “12.0”.
Public methodStatic member 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. For the msbuildtaskhost.exe and tracker.exe tools, the only version supported is “12.0”.

Top

See Also

Reference

ToolLocationHelper Class

Microsoft.Build.Utilities Namespace