Dotnet CLI
why should I use cli when I can use visual studio to do what cil does ?
4 Replies
Because you can script the CLI? Because
dotnet tool
exists? Because its easier to say "oh run this terminal command" instead of sending 5 screenshots of VS
because not everyone uses VS?Also for CI/CD environments or Dockerfiles
There's no VS for Linux, and any web app will run on Linux
And even if there was VS for Linux, why would you want to install something this massive just to run an app, if you can
dotnet run
itVS just calls cli. VS calls cli commands that developers of VS implemented in UI, but those are not all cli commands. As mentioned CI/CD. Learn cli commands, at first it may seem hard, but once you get addicted to it, you will wish to develop through terminal (I do sometimes 🙂 )