79834402

Date: 2025-12-01 06:40:32
Score: 3
Natty:
Report link

I have 3 assemblies. A depends on B depends on C depends on `Microsoft.AspNetCore.OpenApi`.

C compiles without this error. B also compiles without the error, but A gives the error.

Assembly A references types from `Microsoft.AspNetCore.OpenApi` but B does not. After removing all code in A that references `Microsoft.AspNetCore.OpenApi`, it now also compiles without the error. The error also disappears when I add a reference to `Microsoft.AspNetCore.OpenApi` to assembly A instead of the <InterceptorsNamespaces> property.

Are you may be using types from `Microsoft.AspNetCore.OpenApi` where `Microsoft.AspNetCore.OpenApi`, is only a transitive depedency?

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Jarno