-
Notifications
You must be signed in to change notification settings - Fork 545
Fix sample projects to work in GitHub Codespaces by installing .NET 9.0 SDK #854
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ility Co-authored-by: eiriktsarpalis <2813363+eiriktsarpalis@users.noreply.github.com>
…9 and 10 Co-authored-by: eiriktsarpalis <2813363+eiriktsarpalis@users.noreply.github.com>
@copilot getting the following error:
|
Co-authored-by: eiriktsarpalis <2813363+eiriktsarpalis@users.noreply.github.com>
... Fixed the syntax error by using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirming that the most recent changes addresses the issue.
Summary of changes
Fixed sample projects in GitHub Codespaces by updating the devcontainer configuration to properly install multiple .NET SDK versions:
Changes made:
global.json
at requiring .NET 10.0 SDK (10.0.100-rc.1
).devcontainer/devcontainer.json
to install both .NET 9.0 and 10.0 SDKs using the correct syntax:version
:"10.0"
additionalVersions
:"9.0"
Why this approach is correct:
additionalVersions
property allows installing .NET 9.0 alongside the primary 10.0 versionThis fix ensures all target frameworks in the repository (net8.0, net9.0, and net10.0) can be built successfully in GitHub Codespaces.
Original prompt
Fixes #853
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.