自动化Visual Studio构建以创建安装文件. [英] Automate Visual studio build for creating setup files.
问题描述
大家好,
我有一个Visual Studio安装项目(扩展名为.vdproj).我如何使构建自动化(创建msi& exe).
我已经尝试过 MSBuild.exe ,但是没有用. (我能够使用MSBuild.exe构建扩展名为.sln的项目).
是否可以使用命令提示符或 c#创建设置.
更新:我发现可以使用以下命令来做到这一点
Hello all,
I have a visual studio setup project (with the extension .vdproj). How can I automate the build (creating msi & exe).
I have tried MSBuild.exe, but not worked. (I was able to build projects with .sln extension using MSBuild.exe).
is it possible to create setup, either using command prompt or c#.
Update : I found that I can do this using the following command
<Visual Studio Program Path>\devenv "<Project location>\<appname>.vdproj" /Build "Release|Any CPU"
并尝试如下
and tried it as follows
<C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE>\devenv "<C:\Users\Admin\Desktop\SebSetup>\SebSetup.vdproj" /Build "Release|Any CPU"
但这会引发错误:系统找不到指定的文件.
任何帮助都会很棒.
谢谢
Sebastian
But it throws an error : The system cannot find the file specified.
Any help on this would be great.
Thanks
Sebastian
推荐答案
你好,
这个问题解决了.我可以通过创建一个与我的Web安装项目名称相同的解决方案来运行以下脚本
Hello,
This problem is solved. I could run the below script by creating a solution with the same name of my web setup project
"C:\Progra~1\Microsoft Visual Studio 9.0\Common7\IDE\devenv" "C:\Users\Admin\Desktop\SebNewRESTSetup\SebNewRESTSetup.sln" /Build "Release" /Project SebNewRESTSetup
感谢您的支持.
塞巴斯蒂安
Thanks for all support.
Sebastian
看这里:
如何自动化Visual Studio构建? [ ^ ]
试试:
Look here:
How do you automate a visual studio build?[^]
Try:
devenv solution.sln /build configuration
这篇关于自动化Visual Studio构建以创建安装文件.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!