Skip to content
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

Closed
wants to merge 11 commits into from
Closed

Conversation

ross-p-smith
Copy link
Contributor

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

@ross-p-smith ross-p-smith marked this pull request as draft February 27, 2025 21:52
"image": "mcr.microsoft.com/devcontainers/universal:2",
"features": {
"ghcr.io/devcontainers/features/node:1": {},
"ghcr.io/devcontainers/features/dotnet:1": {
"version": "8"
"version": "9"
Copy link
Member

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.

@@ -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']
Copy link
Member

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>.

@markwallace-microsoft markwallace-microsoft added .NET Issue or Pull requests regarding .NET code kernel Issues or pull requests impacting the core kernel kernel.core memory labels Mar 6, 2025
@github-actions github-actions bot changed the title Upgrade dotnet sdk 9 .Net: Upgrade dotnet sdk 9 Mar 6, 2025
@markwallace-microsoft markwallace-microsoft removed .NET Issue or Pull requests regarding .NET code kernel Issues or pull requests impacting the core kernel kernel.core memory labels Mar 6, 2025
@markwallace-microsoft markwallace-microsoft added .NET Issue or Pull requests regarding .NET code kernel Issues or pull requests impacting the core kernel labels Mar 6, 2025
github-merge-queue bot pushed a commit that referenced this pull request Mar 7, 2025
### 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kernel Issues or pull requests impacting the core kernel .NET Issue or Pull requests regarding .NET code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

.Net: Bug: dotnet notebooks require .net 9 SDK
3 participants