Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Did Visual Studio 2010 break "Project Dependencies" between C++ projects?

In Visual Studio 2008, if I had a solution containing multiple C++ projects, I could make them depend on each-other and correctly link by using the "Project Dependencies" option. This fixed up the build order and also made (e.g.) the main application project link against the static library outputs.

In Visual Studio 2010, this doesn't seem to work. Did Visual Studio 2010 change the way this works?

like image 643
Roger Lipscombe Avatar asked Apr 24 '10 13:04

Roger Lipscombe


People also ask

How to check project dependencies in Visual Studio code?

On the Project menu, choose Project Dependencies. The Project Dependencies dialog box opens. On the Dependencies tab, select a project from the Project drop-down menu. In the Depends on field, select the check box of any other project that must build before this project does.

How do I add additional dependencies in Visual Studio?

Configuration Properties => Linker => General => Additional Library directories. Here you list out the "lib" directories that you want to be searched and made available. Configuration Properties => Linker => Input => Additional dependencies. Here you explicitly specify the .


Video Answer


1 Answers

Yes. You also need to add a Reference to the depended-upon project. This is not just for managed C++ (or C++/CLI) applications any more.

The Visual C++ Team Blog has an entry about this: Flexible Project-to-Project References.

like image 70
Roger Lipscombe Avatar answered Nov 15 '22 23:11

Roger Lipscombe