Search code examples
.netcircular-referenceproject-referencecross-reference

Cross referencing assemblies


I have three projects in my .net solution.
The main project and two class library projects.

I have found out that I need to cross reference the class library projects.
Can I do that? Is it safe or there are some considerations?


Solution

  • The IDE won't let you when the projects are in one solution. There are subtle ways to confuzzle it. But then the solution cannot be built from scratch (i.e. Build + Rebuild) since the assembly reference isn't available yet. Refactor this, you probably want a 3rd assembly that both can reference.