I just tried to install ILRepack as a dotnet tool, according to the release notes on v2.0.35. After determining that the tool package name is dotnet-ilrepack, I was informed that the tool was installed successfully:
You can invoke the tool using the following command: ilrepack
Tool 'dotnet-ilrepack' (version '1.0.1') was successfully installed.
I find it odd that the version of the tool, 1.0.1, is different than the released version of the executable, 2.0.35. I mean, I suppose that's fine if the tool package version is 1.0.1. So that's why my first order of business was to run the tool with the /help argument--to make sure that I had the latest ILRepack version of 2.0.35. So I proceeded to execute the tool:
PS C:\> dotnet ilrepack /help
but was met with an error:
Could not execute because the specified command or file was not found.
Possible reasons for this include:
* You misspelled a built-in dotnet command.
* You intended to execute a .NET program, but dotnet-ilrepack does not exist.
* You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.
I just tried to install ILRepack as a dotnet tool, according to the release notes on v2.0.35. After determining that the tool package name is
dotnet-ilrepack, I was informed that the tool was installed successfully:I find it odd that the version of the tool, 1.0.1, is different than the released version of the executable, 2.0.35. I mean, I suppose that's fine if the tool package version is 1.0.1. So that's why my first order of business was to run the tool with the
/helpargument--to make sure that I had the latest ILRepack version of 2.0.35. So I proceeded to execute the tool:but was met with an error: