[release/10.0.1xx-preview7] Show deprecation warning for OpenAPI analyzers #49918
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.
Backport of #49915 to release/10.0.1xx-preview7
/cc @captainsafia
Description
This change introduces a deprecation warning (ASPDEPR007) that is displayed during compilation when the
IncludeOpenAPIAnalyzers
property is set totrue
in Web SDK projects. The warning informs developers that the property and its associated MVC API analyzers are deprecated and will be removed in a future release.Fixes dotnet/aspnetcore#62689
Customer Impact
This change provides advance notice to developers who are currently using the
IncludeOpenAPIAnalyzers
property, allowing them to plan for migration away from this deprecated functionality.Regression?
Risk
The code change itself is localized to Web SDK projects that set the
IncludeOpenAPIAnalyzers
. This change does intentionally introduce a warning to appear in existing builds whereIncludeOpenAPIAnalyzers
is currently set totrue
which can cause breaks in scenarios where users have enabled warn as errors.Verification