Accesses a classic NuGet packaged tool using the standard Build project.
public static DotNetClassicTool Create(string packageName, string? toolName = null)
| parameter | description |
|---|---|
| packageName | The name of the NuGet package. |
| toolName | The name of the tool executable, as found in the tools folder of the NuGet package. Defaults to the package name. |
| exception | condition |
|---|---|
| BuildException | The tool is not installed. |
The version of the tool is determined by the matching PackageReference in tools/Build/Build.csproj.