Skip to content
23 changes: 23 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": ".NET 8 with .NET 6",
"image": "mcr.microsoft.com/dotnet/sdk:8.0",
"features": {
// https://github.com/devcontainers/features/tree/main/src/dotnet
"ghcr.io/devcontainers/features/dotnet:2": {
"version": "latest",
"dotnetRuntimeVersions": "6.0",
"aspNetCoreRuntimeVersions": "6.0",
"additionalVersions": "6.0"
}
},
"customizations": {
"vscode": {
"extensions": [ "ms-dotnettools.csdevkit" ]
}
},
"remoteEnv": {
// https://docs.github.com/en/codespaces/developing-in-a-codespace/persisting-environment-variables-and-temporary-files#for-all-codespaces-for-a-repository
// Set .NET tools directory to PATH since not automatically done by SDK image.
"PATH": "${containerEnv:PATH}:/root/.dotnet/tools"
}
}