Skip to content

Add build support for .NET 11 SDK and run all tests against .NET 11 - #1777

Open
bart-vmware wants to merge 3 commits into
mainfrom
update-net11
Open

bart-vmware wants to merge 3 commits into
mainfrom
update-net11

Conversation

@bart-vmware

@bart-vmware bart-vmware commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Description

Updates the codebase to build against the stable .NET 11 SDK and run all tests against .NET 11. Steeltoe itself does not need to explicitly target .NET 11 at this time.

Quality checklist

  • Your code complies with our Coding Style.
  • You've updated unit and/or integration tests for your change, where applicable.
  • You've updated documentation for your change, where applicable.
    If your change affects other repositories, such as Documentation and/or Samples, add linked PRs here.
  • There's an open issue for the PR that you are making. If you'd like to propose a new feature or change, please open an issue to discuss the change or find an existing issue.
  • You've added required license files and/or file headers (explaining where the code came from with proper attribution), where code is copied from StackOverflow, a blog, or OSS.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
15 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@github-actions

github-actions Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary - All Code Coverage (ubuntu-latest)

Line coverage Branch coverage

Assembly Line coverage Branch coverage
Steeltoe.Bootstrap.AutoConfiguration 97.4% 83.3%
Steeltoe.Common 92.9% 84%
Steeltoe.Common.Certificates 95.7% 83.3%
Steeltoe.Common.Hosting 83.5% 65%
Steeltoe.Common.Http 97.2% 80.9%
Steeltoe.Common.Logging 82.9% 56.2%
Steeltoe.Common.Net 75% 75%
Steeltoe.Configuration.Abstractions 96.4% 92.1%
Steeltoe.Configuration.CloudFoundry 98.9% 92.4%
Steeltoe.Configuration.ConfigServer 93.4% 88.7%
Steeltoe.Configuration.Encryption 98.1% 89.7%
Steeltoe.Configuration.Kubernetes.ServiceBindings 95.7% 82.1%
Steeltoe.Configuration.Placeholder 93.8% 82.6%
Steeltoe.Configuration.RandomValue 93.2% 83.3%
Steeltoe.Configuration.SpringBoot 98.3% 85%
Steeltoe.Connectors 95.2% 87.3%
Steeltoe.Connectors.EntityFrameworkCore 82% 70.8%
Steeltoe.Discovery.Configuration 96.3% 75%
Steeltoe.Discovery.Consul 98% 90.6%
Steeltoe.Discovery.Eureka 90.6% 82.2%
Steeltoe.Discovery.HttpClients 96.2% 94.1%
Steeltoe.Logging.Abstractions 99.4% 95.6%
Steeltoe.Logging.DynamicConsole 100% 92.3%
Steeltoe.Logging.DynamicSerilog 99.1% 95.4%
Steeltoe.Management.Abstractions 100% 100%
Steeltoe.Management.Endpoint 95.9% 87.1%
Steeltoe.Management.GitProperties.Build 95.2% 83.6%
Steeltoe.Management.Prometheus 96.8% 81.2%
Steeltoe.Management.Tasks 95.2% 80%
Steeltoe.Management.Tracing 100% 75%
Steeltoe.Security.Authentication.JwtBearer 100% 97.8%
Steeltoe.Security.Authentication.OpenIdConnect 97.9% 88.6%
Steeltoe.Security.Authorization.Certificate 96.8% 66.6%
Steeltoe.Security.DataProtection.Redis 100% ****

@sonarqubecloud

Copy link
Copy Markdown

@bart-vmware
bart-vmware marked this pull request as ready for review November 11, 2026 18:42
@bart-vmware
bart-vmware requested a review from TimHess November 11, 2026 18:42
uses: actions/setup-dotnet@v6
with:
dotnet-version: 10.0.*
dotnet-version: 11.0.*

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have any concern about the sign tool working with the net11 sdk? I suppose we can address it if it fails, but I don't think we'll hit this path until the pr merges

internal sealed class CertificateCollector : IDisposable
{
#pragma warning disable IDE0028 // Simplify collection initialization
// Justification: workaround for bug https://youtrack.jetbrains.com/issue/RSRP-505438/Collection-expression-with-with-expression-requires-language-version-preview

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I'm reading the youtrack issues correctly, your report was classified as a dupe of an issue that was fixed in 2026.3, which this PR bumps us to... Any chance this suppression isn't actually needed?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nevermind, it's fixed in the NEXT 2026.3 release

Comment thread .config/dotnet-tools.json
}
}
}
} No newline at end of file

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the removal of this newline intentional?

[
"Microting.EntityFrameworkCore.MySql",
"MySqlConnector",
// Temporary workaround: The assembly name changed in the stable 10.x version, but the 11.0.0-preview.1 version doesn't contain that change yet.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need a tracking issue for dealing with this pre-release package ref & workaround? I'm assuming you wouldn't intend to ship with it and see that they plan to release in the next 7-10 days

Comment thread shared-test.props
</None>
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net10.0' Or '$(TargetFramework)' == 'net9.0' or '$(TargetFramework)' == 'net8.0'">

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: this line uses both Or and or

var hashcodeBuilder = new StringBuilder();

foreach (KeyValuePair<string, int> pair in statusMap.OrderBy(pair => pair.Key))
foreach (KeyValuePair<string, int> pair in statusMap.OrderBy(pair => pair.Key, StringComparer.Ordinal))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't object to the addition of StringComparer here or the other two places, but it should probably be mentioned in the PR description since it could change the sort order

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants