链接到静态库 链接到静态库
我有一个(托管/非托管 C++)winforms 应用程序链接到静态库。 该库链接到另一个静态库。 当我对 Winforms 项目进行重建时,Visual Studio 2005 尝试重建引用静态库,但重建深度不会超过一层。 这导致我必须手动重建叶项目,然后重建 Winforms 项目的链。 有没有办法强制进行更深层次的重建?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我应该将所有静态库作为依赖项添加到 Winform 应用程序吗?
Should I just add all static libs as dependancies to the Winform app?
当然。 只要确保第n级库项目在同一个解决方案中,并且直接依赖的库对其有依赖关系即可。 VS 应该重建两者。 这至少适用于本机 C++,并且也应该适用于托管 IFAIK。
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.