If you are on a *nix system a Makefile can solve all repetitive typing problems.
I generally create a high level Makefile
to shorten frequently used commands.
build:
dotnet build
clean:
dotnet clean
restore:
dotnet restore
watch:
dotnet watch --project src/Main/Main.csproj run
start:
dotnet run --project src/Main/Main.csproj
The above commands relate to a clean architecture setup where the file structure roughly looks like the following tree.
-- root
|-- src
| |-- Application
| |-- Core
| |-- Infrastructure
| |-- Main
|-- tests
| |-- Application.IntegrationTests
| |-- Core.UnitTests
| |-- Infrastructure.UnitTests
|-- API.sln
|-- Makefile
With that setup, I can run commands like
make start