Skip to content

[release/10.0.1xx-preview7] Show deprecation warning for OpenAPI analyzers #49918

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

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jul 23, 2025

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 to true 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?

  • Yes
  • No

Risk

  • High
  • Medium
  • Low

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 where IncludeOpenAPIAnalyzers is currently set to true which can cause breaks in scenarios where users have enabled warn as errors.

Verification

  • Manual (required)
  • Automated

@danmoseley danmoseley merged commit c1e8b6f into release/10.0.1xx-preview7 Jul 24, 2025
27 of 30 checks passed
@danmoseley danmoseley deleted the backport/pr-49915-to-release/10.0.1xx-preview7 branch July 24, 2025 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants