I have a solution constructed out of two projects on VS2012. One project is depended on the second one (which is a library) and it is defined as such in the dependency dialog.
When I rebuild the entire solution, the first project is build but no library is created. I get: project2.vcxproj -> output dir\project2.lib but nothing is generated so the main project gives and error since the project2.lib is missing.
However if I build the second project by itself then I get the same output line but this time the library is generated. Then I can build the main application that uses this library and everything works
What I managed to find so far 1: That the output defined in the library project is defined correctly 2: when using the diagnostic output between those two cases I found out that in the second case there is a use of "CopyFilesToOutputDirectory" but there was no difference before that, so I do not know from where is was copy and why it was not done in the first case.
Any ideas what can be causing this?