Skip to main content
added 4 characters in body; edited tags
Source Link
marc_s
  • 759.8k
  • 186
  • 1.4k
  • 1.5k

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?

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>$(InterceptorsNamespaces);Microsoft.AspNetCore.OpenApi.Generated</InterceptorsNamespaces>' 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?

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?

Source Link
Dave
  • 4.2k
  • 5
  • 33
  • 47

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>$(InterceptorsNamespaces);Microsoft.AspNetCore.OpenApi.Generated</InterceptorsNamespaces>' 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?