Checking that all lib and dll libraries belong to the same assembly?

I am developing a program in VS C ++ 2008.

Now I have a huge list of dll and lib dependencies, and I'm adding a little more. I am worried that when I need to update the dependency by creating the source code (where I need to manually replace the built-in DLLs and libraries in the right place), if I accidentally forget to replace something or vice versa, I may run into compilation and / or runtime problem . And to find that the place is going wrong can be a little difficult.

So, is there some kind of program or method capable of satisfying this task to facilitate the creation of a program with many update dependencies?

+5
source share
3 answers

You could add scripts as post-build steps to your DLL projects that automatically copy the results to a shared directory (something like this $(SolutionDir)$(ConfigurationName)might be fine if you don't use different project configurations for the same solution configuration). Or, you simply install all project output directories in such a shared directory.

Then, when you build the whole solution, you know that you have the latest versions of all these files in this directory.

+1
source

. Visual Studio , . Build + Clean , Build + Build . , Build + Clean .lib, .

+1

Refix is ​​a great dependency checker: http://refix.codeplex.com/

0
source

All Articles