如何使用TFS 2010 Build构建Visual Studio安装程序项目(.vdproj)? [英] How to build Visual Studio Setup projects (.vdproj) with TFS 2010 Build ?

查看:88
本文介绍了如何使用TFS 2010 Build构建Visual Studio安装程序项目(.vdproj)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个包含VS(2013)安装项目的解决方案.显然,MSBuild不支持构建此类项目,因此我们必须通过开发机手动运行构建. 我看到了以下链接,其中显示了一种解决方法:

We have a solution that contains VS (2013) setup projects. Apparently MSBuild does not support building such projects so we have to run the build manually through dev machines. I saw the following link that shows a workaround:

http://colinsalmcorner.com/post/building-vs-2015-setup-projects-in-team-build#comments

但是我们不想在我们的构建机器上安装VS.

BUT we would like NOT to install VS on our build machine.

是否有解决此问题的方法? 在构建机器中构建设置项目的最佳方法是什么? 谢谢

Is there a way to workaround this problem? What is the best way to build setup projects in a build machine? Thanks

推荐答案

默认情况下,Team Build 2010会调用MSBuild在生成代理计算机上生成项目.如果一个项目不支持MSBuild来构建它,我们需要提供一个可以构建该项目的编译器,并且该编译器支持运行命令行来调用它,因此我们可以添加 InvokeProcess 活动(执行命令行)以调用该编译器以在构建过程模板中构建该项目.

Team Build 2010 invokes MSBuild to build project on build agent machine by default. If one project don’t support MSBuild to build it, we need provide a compiler which can build this project, and this compiler support run the command line to invoke it, so we can add the InvokeProcess activity(execute the command line) to invoke that compiler to build this project in build process template.

如果VS是您构建此安装项目的编译器,则需要将其安装在构建计算机上.

If VS is the compiler you build this setup project, then it's needed to be installed on your build machine.

使用TFS 2010 Team Build构建Visual Studio安装项目: http://blog.ehn.nu/2010/05/building-visual-studio-setup-projects-with-tfs-2010-team-build/

Building Visual Studio Setup Projects with TFS 2010 Team Build: http://blog.ehn.nu/2010/05/building-visual-studio-setup-projects-with-tfs-2010-team-build/

这篇关于如何使用TFS 2010 Build构建Visual Studio安装程序项目(.vdproj)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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