Uh oh!
There was an error while loading. Please reload this page.
Add devcontainer.json to support .NET 9 samples in GitHub Codespaces - #779
Conversation
@eiriktsarpalis 👋 This repository doesn't have Copilot instructions. With Copilot instructions, I can understand the repository better, work faster and produce higher quality PRs. I can generate a .github/copilot-instructions.md file for you automatically. Click here to open a pre-filled issue and assign it to me. I'll write the instructions, and then tag you for review. |
…espaces Co-authored-by: eiriktsarpalis <2813363+eiriktsarpalis@users.noreply.github.com>
…ostCreateCommand Co-authored-by: eiriktsarpalis <2813363+eiriktsarpalis@users.noreply.github.com>
Tested the codespace and it appears to be working now. |
mikekistler
left a comment
There was a problem hiding this comment.
This looks good but I think there are a couple small improvements we should make.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: eiriktsarpalis <2813363+eiriktsarpalis@users.noreply.github.com>
Uh oh!
There was an error while loading. Please reload this page.
Sample projects in this repository that target .NET 9 (such as
EverythingServer,AspNetCoreMcpServer,ProtectedMcpServer, etc.) were failing to build or run in GitHub Codespaces with the error:The root cause was that GitHub Codespaces' default container includes .NET 8 LTS but not .NET 9 STS, while the repository's
global.jsonspecifies .NET 9.0.204 and several sample projects targetnet9.0.This adds a
.devcontainer/devcontainer.jsonconfiguration that:Now developers can open the repository in GitHub Codespaces and immediately run any sample project without manual SDK installation:
All existing .NET 8 samples continue to work normally, ensuring backward compatibility.
Fixes#776.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.