Visual Studio doesn't like circular project references but the C# compiler is quite happy with circular assembly references
Regards
Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk
Actually, it doesn't, at least not within the same project. It's a
problem of which to compile first. Since the compiler gets its class /
interface / method signature information from the compiled assembly, it
can't compile assembly A, which references assembly B, without first
compiling B so that it can check A's references to things in B to
ensure that they're valid references. However, it can't compile B until
it first compiles A so that it can check B's references to things in A
to ensure that they're valid references.
Unfortunately, the compiler doesn't say anything like "circular
assembly reference". Instead it just throws up its (virtual) hands and
says that (if it chose to compile A first) it "can't find" any of the
things in assembly B.
I've never tried putting the circular-referencing assemblies in
different projects, and compiling one (without the circular reference),
then the other, then adding the circular reference and compiling the
first project again. In theory the compiler wouldn't notice, but as I
said, I've never tried it.