Accesses a classic NuGet packaged tool using the specified project.
public static DotNetClassicTool? TryCreateFrom(string projectPath, string packageName,
string? toolName = null)
parameter | description |
---|---|
projectPath | The C# project file path containing the NuGet package version. |
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. |
Null if the tool is not installed.