Re: Circular dependencies



If you have 3 projects, A depends on B, B depends on C, C depends on A....

Who should visual studio compile first?

Visual studio bases it's build order on references. It will first compile a project that doesn't depend on any other projects in the solution. If Each project depends on at least someone else, it doesn't know who to compile first.

I suspect you came into a circular dependency after you'd already compiled earlier versions of the dlls..... just try to imagine if you had only source code, how you would compile the dlls.



Hello Joe M.,

Hello.

Can someone explain to me or point me to documentation about why
circular dependencies are not allowed between projects in Visual C#
.NET?  I'm assuming it's because of the CLR and how the compiler
generates assemblies but I'm having trouble finding specifics on MSDN
and the web.

I'm embarrassed at how basic this question could be but I'm coming
from Java (and no C++) and I'd like to understand it.

Thank you for your consideration.

Joe



.



Relevant Pages

  • Re: Can gcc and xlC coexist?
    ... Some of these apps are now destined to be ported to Linux, ... and I was thinking that being able to first compile them in their ... shared library linkage models differ, ...
    (comp.unix.aix)
  • Re: Strange behaviour in BDS2006
    ... Ignore the erroneous reports is the best I can offer you now. ... the bogus errors before the first compile are pretty annoying... ...
    (borland.public.delphi.non-technical)
  • Re: How to compile and install PadWalker on win xp with ActiveState port perl 5.8
    ... How to compile and install PadWalker on win xp with ActiveState port perl 5.8 ... I had to first compile PadWalker.xs file into c file. ... Also your ID looks like a Chinese user,then there's another Chinese Perl-XS intro: ...
    (perl.beginners)
  • Compilation
    ... I wrote a c# application (dll) and i use it in my project, ... How can i config my c# application that after i first compile it it will not ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Circular DLL dependencies
    ... involved in a circular dependency? ... and it happened to me by accident once. ... and they are not visible at compile or link ... Kind regards, ...
    (microsoft.public.vc.language)