Back to Aspnetcore

ASPDEPR diagnostics overview

aspnetcore/diagnostics/aspdepr-ids.md

latest959 B
Original Source

ASPDEPR diagnostics overview

ASPDEPR diagnostics are compile-time warnings issued by the .NET compiler when your code uses ASP.NET Core APIs that have been deprecated. Deprecated APIs are still functional but are scheduled for removal in a future release. Addressing these warnings helps keep your code up to date and ensures a smoother upgrade path.

ASPDEPR diagnostics are similar to the SYSLIB obsoletions in .NET, but are specific to ASP.NET Core.

[!NOTE] This article is a work-in-progress. It's not a complete list of deprecation diagnostics.

ASPDEPR diagnostics

The following table lists the ASPDEPR deprecation diagnostics for ASP.NET Core:

Diagnostic IDDescription
ASPDEPR002WithOpenApi is deprecated