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?