Visual-studio – Project reference vs. DLL Reference – Which is better

referencevisual studio

I know there are other questions regarding this subject, and I've looked at this question, but I'd like to see a little bit more discussion and information on both sides of this – is it a better practice to add a project to a solution and reference the project, or to add a reference to the .dll?

Best Answer

It's not much of a choice. If you have a solution with both projects then use a project reference. If your solution doesn't have the project then you have to use an assembly reference.

So the real question should probably be: do I create a solution with both projects? Yes, as long as the project is still in the debug stage and liable to require bug fixes.