Skip to content

.Net: Changes to support .NET9 formatting #10838

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

Merged

Conversation

ross-p-smith
Copy link
Contributor

@ross-p-smith ross-p-smith commented Mar 6, 2025

Motivation and Context

In sdk9, there is a bug fix to one of the analyzers: dotnet/roslyn#78295. 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.

This relates to dotnet/msbuild#10716 and was previously fixed in dotnet/msbuild#10741

@ross-p-smith ross-p-smith requested a review from a team as a code owner March 6, 2025 19:17
@markwallace-microsoft markwallace-microsoft added the .NET Issue or Pull requests regarding .NET code label Mar 6, 2025
@github-actions github-actions bot changed the title Remove modifiers from public interfaces .Net: Remove modifiers from public interfaces Mar 6, 2025
@RogerBarreto
Copy link
Member

This PR description doesn't describe what its doing..

@markwallace-microsoft markwallace-microsoft changed the title .Net: Remove modifiers from public interfaces .Net: Changes to support .Net9 formatting Mar 7, 2025
@markwallace-microsoft markwallace-microsoft changed the title .Net: Changes to support .Net9 formatting .Net: Changes to support .NET9 formatting Mar 7, 2025
@markwallace-microsoft markwallace-microsoft added this pull request to the merge queue Mar 7, 2025
Merged via the queue into microsoft:main with commit 9c71640 Mar 7, 2025
20 checks passed
@ross-p-smith ross-p-smith deleted the ross/sdk9-format branch March 10, 2025 08:36
musale pushed a commit to musale/semantic-kernel that referenced this pull request Mar 10, 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 microsoft#10716 and was previously fixed in microsoft#10741
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
.NET Issue or Pull requests regarding .NET code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants