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>
This commit is contained in:
Copilot 2025-09-25 11:42:11 +03:00 • committed by GitHub
commit f331a6927f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,22 @@
{
"name": "C# (.NET SDK)",
"image": "mcr.microsoft.com/devcontainers/dotnet:1-8.0-jammy",
"features": {
"ghcr.io/devcontainers/features/dotnet:2": {
"version": "9.0"
},
"ghcr.io/devcontainers/features/node:1": {}
},
"customizations": {
"vscode": {
"extensions": [
"ms-dotnettools.csharp",
"ms-dotnettools.csdevkit"
],
"settings": {
"dotnet.defaultSolution": "ModelContextProtocol.slnx"
}
}
},
"postCreateCommand": "dotnet --list-sdks && echo 'Available .NET SDKs installed successfully!'"
}