-
install vscode
-
install Remote - Containers extension
-
initialize devcontainer with command Remote-Containers: Add Development Container Configuration Files
- Choose C# -> .net 6.0 -> lts
-
Reopen the workspace as a Container
- vscode will start the setup of the devcontainer
-
dotnet new sln will create a new empty solution
-
dotnet new web --output example/ will create a new project called example.csproj inside the folder ./example
-
dotnet sln add example/example.csproj will add the newly created project to the solution
-
dotnet run --project example/example.csproj will build and run the application
- dotnet dev-certs https --trust is necessary to trust the https dev certificate