-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
.Net: Upgrade dotnet sdk 9 #10716
.Net: Upgrade dotnet sdk 9 #10716
Conversation
"image": "mcr.microsoft.com/devcontainers/universal:2", | ||
"features": { | ||
"ghcr.io/devcontainers/features/node:1": {}, | ||
"ghcr.io/devcontainers/features/dotnet:1": { | ||
"version": "8" | ||
"version": "9" |
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.
We are happy to add STS 9 as an additional sanity check, any 9 related instrumentation should be additional to existing 8. Giving that I would suggest adding both 8, and 9 containers as possibilities, and sticking with the 8 when not possible.
.github/workflows/dotnet-ci.yml
Outdated
@@ -66,7 +68,7 @@ jobs: | |||
matrix: | |||
os: [windows-latest] | |||
configuration: [Release, Debug] | |||
dotnet-version: ['8.0.x'] | |||
dotnet-version: ['8.0.x', '9.0.x'] |
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.
Might worth also explore adding the 9.0 port for the current projects.
<frameworks>net8.0;net9.0;netstandard2.0</frameworks>
.
2c56ae9
to
e898928
Compare
### Motivation and Context In sdk9, there is a bug fix to one of the analyzers: [https://github.com/dotnet/msbuild/issues/11426](https://github.com/dotnet/msbuild/issues/11426). This causes the code base to fail in the `dotnet format` stage when built on sdk9. This PR fixes the file that has been changed this week and adds a configuration into the build to format using sdk9.0 so that the build fails if more are introduced. - [x] The code builds clean without any errors or warnings - [ ] The PR follows the [SK Contribution Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [ ] All unit tests pass, and I have added new tests where possible - [ ] I didn't break anyone 😄 This relates to #10716 and was previously fixed in #10741
Motivation and Context
Cloning the repo and following the dotnet NoteBook guide fails because it now requires .Net 9 SDK. This fixes #10715
Description
Contribution Checklist