A basic dotnet MVC starter repo for vscode with devcontainers.
Clone the repo like so:
git clone git@github.com:csabaszilveszter/StarterDotnetMvcApp.git
Start VSCode in the project:
cd StarterDotnetMvcApp
code . # start vscode
# then restart in devcontainer (as vcsode offers it)
Create a shell alias
:
-
For .NET 6.0 (LTS) as is in this project:
alias dotnet6='docker run --rm -w /$(basename $PWD) -v $PWD:/$(basename $PWD) mcr.microsoft.com/dotnet/sdk:6.0 dotnet'
You can add this to your ~/.bashrc
or ~/.zshrc
file to make
the alias persist across your shell sessions.
Check out devcontainer.json for more details.
To open this project follow the instructions here (from step #4).
Before trying to "press play" on vscode please run this otherwise .NET will complain:
dotnet dev-certs https --trust