Skip to content

Commit 5fbdbd8

Browse files
Add devcontainer.json to support both .NET 8 and .NET 9 in GitHub Codespaces
Co-authored-by: eiriktsarpalis <[email protected]>
1 parent 4851c29 commit 5fbdbd8

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "C# (.NET SDK)",
3+
"image": "mcr.microsoft.com/devcontainers/dotnet:1-8.0-jammy",
4+
"features": {
5+
"ghcr.io/devcontainers/features/dotnet:2": {
6+
"version": "9.0",
7+
"additionalVersions": "8.0"
8+
}
9+
},
10+
"customizations": {
11+
"vscode": {
12+
"extensions": [
13+
"ms-dotnettools.csharp",
14+
"ms-dotnettools.csdevkit"
15+
]
16+
}
17+
},
18+
"postCreateCommand": "dotnet --list-sdks"
19+
}

0 commit comments

Comments
 (0)