[release/10.0] Limit Microsoft.OpenApi to disallow next major#67772
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the repo’s dependency version configuration to constrain Microsoft.OpenApi / Microsoft.OpenApi.YamlReader so NuGet restore won’t float to the next major version, mirroring release/10.0 PR #67771.
Changes:
- Changed
MicrosoftOpenApiVersionandMicrosoftOpenApiYamlReaderVersionfrom a fixed version to a (intended) version range ineng/Versions.props.
3 tasks
DeagleGross
approved these changes
Jul 14, 2026
Contributor
|
Hi @Youssef1313. This PR was just approved to be included in the upcoming servicing release. Somebody from the @dotnet/aspnet-build team will get it merged when the branches are open. Until then, please make sure all the CI checks pass and the PR is reviewed. |
DeagleGross
approved these changes
Jul 16, 2026
wtgodbe
approved these changes
Jul 16, 2026
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.
This mirrors #67771 in release/10.0.
Limit Microsoft.OpenApi to disallow next major
This PR adjusts the dependency on Microsoft.OpenApi to be
< 3.0.0and>= 2.7.5.Description
Microsoft.OpenApi 2.x and 3.x are not binary compatible. Attempting to update Microsoft.OpenApi in user applications to 3.x while using .NET 10 will fail with errors that are hard to interpret by users. This could either be that the Xml comments source generator producing code with compilation errors, or fail due to other binary incompatibilities at runtime.
Fixes #64317
Customer Impact
Customers will get a more clear error from NuGet that they should keep the dependency on 2.x as 3.0.0+ isn't supported. This is better than failing with cryptic errors in source-generated code.
Regression?
No
Risk
Low
This is a failure case already today.
Verification
From CI artifacts:
Packaging changes reviewed?