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.
This is the error I get:
The 'interceptors' feature is not enabled in this namespace. Add '$(InterceptorsNamespaces);Microsoft.AspNetCore.OpenApi.Generated' to your project.
The error occurs on line 596 of the 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?