Brian
Brian

Reputation: 5966

Linking to a static lib that links to a static lib

I have a (managed/unmanaged C++) winforms app that links to a static library. That library links to another static library. When I do a Rebuild on the Winforms project, Visual Studio 2005 attempts to rebuild the references static library, but does not rebuild deeper than one level. This causes me to have to manually rebuild the leaf project and then rebuild up the chain to the Winforms project. Is there a way to force a deeper rebuild?

Upvotes: 0

Views: 427

Answers (2)

Nick
Nick

Reputation: 6846

Sure. Just make sure the n-th level library project is in the same solution, and the immediately dependent library has a dependency on it. VS should rebuild both. This works for native C++ at least, and should work for managed too IFAIK.

Upvotes: 1

Brian
Brian

Reputation: 5966

Should I just add all static libs as dependancies to the Winform app?

Upvotes: 2

Related Questions