Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

debugging dependent projects in visual studio

Sorry about the newbie question but I could not find an answer anywhere: I have a Visual Studio 2010 project (C#) with several dependencies on other projects in the same solution. When I debug the project and try to step into code in one of the dependencies, it steps over instead. Also, it seems that it is using a previous, installed version of the dependency instead of using the one in the solution. How can I make it use the one in the solution and allow step-into?

like image 891
user884248 Avatar asked Oct 16 '25 22:10

user884248


2 Answers

Figured it out.

  1. The dependencies' compiled versions were installed in the GAC - needed to take them out first.

  2. Needed to turn on Tools->Options->Debugging->General->Enable Just My Code.

  3. Needed to set Copy Local to True for each dependency in the target project.

  4. Like everyone here pointed out, needed to re-build all dependencies first, in Debug mode.

Thanks everyone for your help!

like image 86
user884248 Avatar answered Oct 19 '25 12:10

user884248


When you add the projects as references, add them using the "projects" tab (of the "add references" dialog) instead of adding them as binary DLLs.

like image 38
Mark Lakata Avatar answered Oct 19 '25 11:10

Mark Lakata



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!