Microsoft.AspNetCore.OpenApi 10.0.0 - The 'interceptors' feature is not enabled in this namespace
I am trying to upgrade to .Net 10 (from .Net 9), but after updating the Microsoft.AspNetCore.OpenApi package to 10.0.0, I can no longer build my application.
Full Error:
The 'interceptors' feature is not enabled in this namespace. Add '$(InterceptorsNamespaces);Microsoft.AspNetCore.OpenApi.Generated ' to your project.
The error comes from line 596 of file OpenApiXmlCommentSupport.generated.cs.
Is there any way to disable Xml Comment generation? It's not a feature I am currently using.
If not, is there another way to prevent this build error?