Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a simple way to switch between a project and it's dll

We often have a set of common core libraries that for some of our development we want to think of them as dll references and thus just reference the dlls and not include the project file.

Other times we need all projects for an intimate debugging session. I can't just have Uber.sln and Core.sln as the references are in the project files. I've had this question for several years on different projects but do not have any solution other than having an Uber.sln with the 50 projects.

Any ideas / hints / directions welcome!

like image 920
Squirrel Avatar asked Oct 08 '10 16:10

Squirrel


People also ask

How do I use DLL in another project?

Solution 1Add a reference to the DLL directly to your new project: open your project in VS, expand the Project branch in the Solution explorer, then right click "References". From the context menu, select "Add Reference..." and wait for the dialog - If can take a little while to appear.

Where can I find DLL in project?

Select the C/C++ DLL project in Solution Explorer and select the Properties icon, or right-click the project and select Properties. At the top of the Properties pane, under Configuration, select All Configurations. Under C/C++ > General > Additional Include Directories, specify the folder that has header files.

How debug DLL from another solution?

Debug from the DLL project Set breakpoints in the DLL project. Right-click the DLL project and choose Set as Startup Project. Make sure the Solutions Configuration field is set to Debug. Press F5, click the green Start arrow, or select Debug > Start Debugging.


1 Answers

As long as the DLLs are built with Debug and you have the PDBs, you dont need to have it included as a "project reference."

It will prompt you for the source code, or you can just open the source code in the solution and set a breakpoint.

How to show source code in debug when using .lib and dll

like image 184
Nix Avatar answered Sep 21 '22 20:09

Nix