If we talk about the cyclical dependency of the assembly, then this is a problem when project A depends on something in project B, for example, by referencing a class in project B. And at the same time, project B depends on project A, because it refers to a class or something in project A. The problem is that the build system cannot determine which project to build first and which second.
But you have a weirder view of circular dependency in your hosted code. The constructors of your two classes are trying to create an instance of another class, so A creates an instance of B, which creates an instance of A, which creates B, which ... You get the idea.
EDIT:
The cyclic build dependency is, at least for all build systems that I know of, 100% dependent on how the projects reference each other. Visual Studio solutions are not involved at all, so it doesnβt matter if these two projects are in the same solution or in different solutions, or maybe even in projects that are not part of the Visual Studio solution, for example, projects created by the machine.
If you are not using an automatic build system, but instead create projects manually, then you are a build system. And how do you decide which project will be built first and which will be built second?
Renniepet
source share