Quantcast
Channel: Visual Studio General Questions forum
Viewing all articles
Browse latest Browse all 21115

Build Succeeded, but no .lib file gets created but succeeds when builds alone

$
0
0

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?


Viewing all articles
Browse latest Browse all 21115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>