Loading

devenv vdproj is build other project, not package msi

公司有个老项目,是用VS2010开发的Winform程序,采用的是VS 的Installer打包的,最近弄了Jenkins自动打包脚本,发现不好使,无法生成msi。

使用VS2010可以正常打包,但是在CMD下执行devenv steup.vdproj /Rebuild 则无法生成msi文件,而是把解决方案下的其他项目都走了一遍。

网上找了很多解决方案,都不好使,然后看到了一篇帖子:Four Solutions built in three different ways !!! (microsoft.com)

里面有这么一段话:

The standard devenv logic will kick in in this case and it will look for a .sln file with the same base name (foo, in my example) in the parent directory of the project file.  If no such .sln file exists, it will check that same directory for a single .sln file that references the project.  If such a .sln file exists, your command should have exactly the same behavior as if you had done:

 给了我启发,于是,我把steup.vdproj重命名为了和解决方案同名的vdproj,例如解决方案是Test.sln,则修改为Test.vdproj,然后,运行devenv Test.vdproj /Rebuild就可以正常打包了,在Jenkins下也是没问题的。
posted @ 2022-12-06 13:15  眾尋  阅读(36)  评论(0编辑  收藏  举报