Add the target below to the project file for your dotnet core global tool. You can run this target to simplify
reinstalling the global tool. You can execute this target with dotnet build -t:InstallTool
.
When this target is executed the following will happen (in this order):
- Project is packed into a NuGet package
- Tool is uninstalled with
dotnet tool uninstall
- Tool is installed with
dotnet tool install
- Help is called on the tool just installed