配置 Visual Studio“安装项目”通过代码
在我的解决方案中,我添加了一个安装项目来部署我的应用程序。由于某种原因,我想实用地配置它,而不是通过 VS 向导,即通过代码设置“项目输出”、所需的程序集等。我还需要再次通过代码制作最终设置文件。
感谢您的热心帮助。
问候, 贝赫扎德
In my solution I have added a Setup Project to deploy my application. For some reason I want to configure it pragmatically not through VS wizards, that is, set “Project Output”, needed assemblies etc. via code. Also I need to make final setup file, again via code.
Thanks for your kind help.
Regards,
Behzad
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您看过 WIX 吗?最初设置您需要的内容可能需要更长的时间,但从长远来看会更加灵活。
Have you looked at WIX? It may take longer to setup what you need initially, but will be more flexible in long term.
虽然严格来说不是您问题的答案,但 Github 项目 CLIDE 是一个命令行实用程序,可以简化 Visual Studio 项目的创建和管理,并且可以更轻松地仅使用编译器 ( csc.exe) 和 msbuild.exe 来管理和构建项目。使用它创建一个可以完成您需要的测试项目,您应该能够从它创建的文件中找出其余的内容。
https://github.com/remi/clide
While not strictly an answer to your question, the Github project CLIDE is a command line utility that simplifies creating and managing Visual Studio projects, and makes it easier to manage and build projects using only the compiler (csc.exe) and msbuild.exe . Use it to create a test project that does what you need, and you should be able to figure out the rest from the files it creates.
https://github.com/remi/clide