Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 952
hfsyria Avatar asked Dec 29 '22 03:12

hfsyria


1 Answers

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.

like image 117
Hans Passant Avatar answered Jan 11 '23 22:01

Hans Passant