如何在 Visual Studio 2010 中从 MSI 中排除不需要的 DLL
我有许多项目在解决方案中,它们引用解决方案中其他项目的 DLL。然而,某些 DLL 还引用其他 DLL,例如数据库连接,它们非常大,因此我希望将其从构建中排除。
在安装项目中是否可以这样做?如果是这样,你会怎么做?
谢谢
I have a number of projects that are in solution, which reference DLLs from other Projects in the solution. However, some of DLLs, also reference other DLLs, such database connections, which are quite large and because of this I wish to exclude it from the build.
Is there away of doing this in the setup project? If so, how do you do it?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我没记错,你应该能够禁用自动依赖项。此外,右键单击解决方案资源管理器中的安装程序应该会显示所有依赖项。只需删除您不需要的依赖项即可。
当然,您面临安装程序损坏的风险,但我认为您会解决这个问题。
J
As I remember right, off the top of my head, you should be able to disable automatic dependencies. Furthermore, right clicking on the installer in the solution explorer should show you all the dependencies. Simply delete the dependencies you don't want.
Of course, you run the risk of broken installer, but I think you'll figure that out.
J