Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding references to other projects in Visual Studio 2012

I have a solution with 4 projects in it.

Test.Common Test.Controller (Controllers for the Web project) Test.Data (EntityFramework) Test.Web (MVC4)

When I go to add a reference to my Data layer to my Controller project and browse to my Data project's directory, should I be using the dll from the 'bin/Debug' directory or the 'obj' directory? And, does it make a difference?

like image 358
Mithrilhall Avatar asked Nov 28 '22 21:11

Mithrilhall


1 Answers

Neither.

You should add a Project reference (from the Solution section)

This will make Visual Studio resolve the reference from the project system, making features like Go to Definition and automatic rebuild work.


Outside your solution, you should add from bin.

like image 142
SLaks Avatar answered Dec 06 '22 04:12

SLaks