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:
parent
5f992994c3
commit
f331a6927f
1 changed files with 22 additions and 0 deletions
22
.devcontainer/devcontainer.json
Normal file
22
.devcontainer/devcontainer.json
Normal 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!'"
|
||||
}
|
||||
Loading…
Reference in a new issue