I have 2 class libraries projects A and B, and A depends on (has a reference to) B.
In B I have a class to which I want to add XML comments, and mention a class in A using a <see cref="ClassInA"/>
. The problem is that because B doesn't have a reference to A (only vice versa), then I get a warning:
CS1574: C# XML comment has cref attribute that could not be resolved
Is there a way to somehow "add a reference" but only for XML Comments purposes?
Clarification:
Project A contains an interface A.I and a method that takes A.I as an argument. Project B contains a default implementation of A.I, that should be used in most cases. In the comment I want to specify that in most cases you should pass the default implementation defined in B. But because B have dependencies on other libraries that in some cases are not desirable then the default implementation shouldn't be in A.