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