如何从jenkins构建Visual Studio安装程序项目(.vdproj)以生成.exe和.msi文件? [英] How to build visual studio installer project (.vdproj) from jenkins to generate .exe and .msi files?

查看:124
本文介绍了如何从jenkins构建Visual Studio安装程序项目(.vdproj)以生成.exe和.msi文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Visual Studio安装程序项目(.vdproj),我想从jenkins构建它.有人可以为我提供解决方案吗?我尝试了msbuild,它对我没有帮助.然后我在批处理文件中尝试了以下内容.

I have a visual studio installer project (.vdproj) and I wanted to build it from jenkins. Could someone provide me the solution for this? I tried with msbuild which didn't workout for me. Then i tried the following in batch file.

devenv.exe pathToProject\projectName.vdproj /build "Release|Any CPU"

那没有用.

然后我尝试了

devenv.com  pathToProject\projectName.vdproj /build "Release|Any CPU"

在这种情况下,已构建项目,但未在Release(也不是Debug)文件夹中创建.exe和.msi文件.

In this case the project was built but .exe and .msi files were not created in the Release (nor Debug) folder.

推荐答案

从jenkins中构建.vdproj文件需要注册在以下配置单元中,将"EnableOutOfProcBuild"作为DWORD添加,值为0.

Buiding the .vdproj file from jenkins requires a register "EnableOutOfProcBuild" to be added as DWORD with value as 0 in the below hives.

"HKEY_CURRENT_USER - > Software -> Microsoft->Visual Studio ->14.0_Config -> MSBuild"

"HKEY_USERS- > .Default - > Software -> Microsoft->Visual Studio ->14.0_Config -> MSBuild".

您可以使用以下命令来构建项目.

You can use the below command to build the project.

devenv.com  pathToProject\projectName.vdproj /build "Release" or "Release|Any CPU"

这篇关于如何从jenkins构建Visual Studio安装程序项目(.vdproj)以生成.exe和.msi文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆