From f331a6927f5c7fcfbbc71403b1d04dc117b538f9 Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Thu, 25 Sep 2025 11:42:11 +0300 Subject: [PATCH] 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 --- .devcontainer/devcontainer.json | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..2746f07 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -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!'" +} \ No newline at end of file