Test .NET 11 Preview 4 on master#7766
Draft
johnsimons wants to merge 5 commits into
Draft
Conversation
04a1cb7 to
3a24832
Compare
cecfc8c to
0038547
Compare
Update all test projects (`NServiceBus.*Tests.csproj`) to target `net11.0`. This change also updates `global.json` to specify `11.0.100-preview.4.26230.115` SDK and configures the CI workflow to install both `10.0.x` and `11.0.x` .NET SDKs for build compatibility.
0038547 to
873540b
Compare
johnsimons
commented
May 26, 2026
|
|
||
| sb.AppendLine(); | ||
| sb.Append(new string(' ', i * 4)); | ||
| sb.Append(' ', i * 4); |
Member
Author
There was a problem hiding this comment.
I was getting the following warning:
warning CA1830: Prefer strongly-typed StringBuilder overload (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1830)
Member
There was a problem hiding this comment.
This change seems like it's worth going ahead and getting into master in a separate PR.
Otherwise the tests do not work.
Addresses `CS1701` build warnings in the `NServiceBus.Core.Analyzer.Tests.Roslyn5` project. This specific analyzer test project requires a different test SDK version, leading to framework version conflicts during the .NET 11 upgrade.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update the target framework of all projects to
net11.0and configure the SDK to11.0.100-preview.4inglobal.json. This moves the solution to the .NET 11 preview.