Skip to content

Commit f331a69

Browse files
Add devcontainer.json to support .NET 9 samples in GitHub Codespaces (#779)
* Initial plan * Add devcontainer.json to support both .NET 8 and .NET 9 in GitHub Codespaces Co-authored-by: eiriktsarpalis <2813363+eiriktsarpalis@users.noreply.github.com> * Polish devcontainer.json with better VS Code integration and useful postCreateCommand Co-authored-by: eiriktsarpalis <2813363+eiriktsarpalis@users.noreply.github.com> * Remove redundant .NET 8 SDK installation and add Node.js feature Co-authored-by: eiriktsarpalis <2813363+eiriktsarpalis@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: eiriktsarpalis <2813363+eiriktsarpalis@users.noreply.github.com> Co-authored-by: Eirik Tsarpalis <eirik.tsarpalis@gmail.com>
1 parent 5f99299 commit f331a69

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
},
8+
"ghcr.io/devcontainers/features/node:1": {}
9+
},
10+
"customizations": {
11+
"vscode": {
12+
"extensions": [
13+
"ms-dotnettools.csharp",
14+
"ms-dotnettools.csdevkit"
15+
],
16+
"settings": {
17+
"dotnet.defaultSolution": "ModelContextProtocol.slnx"
18+
}
19+
}
20+
},
21+
"postCreateCommand": "dotnet --list-sdks && echo 'Available .NET SDKs installed successfully!'"
22+
}

0 commit comments

Comments
 (0)