In general, a command for publishing console app is dotnet publish -c Release -r win10-x64
You should change win10-x64
by correct rid which belongs to OS such as linux-x64
, osx.10.14-x64
What is the release channel then?
It depends, if it is running on Window or Linux, it will be .exe file
Should I build a --self-contained release?
--self-contained
makes you to isolate any 3rd libraries and a release package. If you aren't sure the host doesn't install any 3rd libraries, so --self-contained
will help you. Thus a build will be larger than.
How is my tool placed into the $PATH on the users machine?
Once again, it depends on your target OS. Each OS has a different way to set $PATH. And if you want to custom a cli as dotnet
or npm
, check in the link Custom commands in windows Command Prompt
Should I provide an installer for Windows and a PPA for Ubuntu?
If you are DevOps Engineer, so you don't want it because it isn't friendly with CLI. You want only release package.