Visual Studio 2010 not autolinking static libraries from projects that are dependencies as it should be supposed to

This still works, but was changed in VS 2010:

“With VS2010, we stopped supporting project dependencies defining implicit references and we also introduced a new way of defining project dependencies at the project level. Since a project reference and a project dependency are close concepts, both applying to a project, it made sense to have them represented together, in a consistent way, in the project file. As you will see in the snippets below, the only difference between a project reference definition and a project dependency definition consists in metadata that defines the output assembly inclusion/exclusion into/from the main project link command line.
Although we did not remove the “Project Dependencies” dialog, we recommend defining new project dependencies via the “Framework and References” dialog. You need to set the “Reference Assembly Output” property in the property page UI to false for a project dependency and to true for a project reference.”

Just right-click on the console project, select “Properties->Common Properties->Framework and References->Add New Reference” and add the static library project; also check that “Link Library Dependencies” is True on the right hand side. Seems to work for debug and release builds. You learn something new every day. 😉

Leave a Comment