如何使用TeamCity构建.vdproj msi? [英] How to build .vdproj msi using TeamCity?
问题描述
我正在尝试使用TeamCity进行持续集成设置,以自动构建和发布我们的应用程序和Windows服务.该解决方案当前包含一个Web应用程序和2个服务(在许多其他项目中,但所有部署的都是应用程序和服务)-使用Visual Studio 2010安装程序项目(.vdproj
)将这些服务打包到.msi安装程序中. .
Web应用程序不是问题,因为我可以使用MsBuild.exe
进行发布.但是,MsBuild.exe
不会构建.vdproj
项目.我遇到的一种解决方案是使用devenv.com
,例如"C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.com" SolutionFile.sln /Build "Release" /Project SetupProjectFile.vdproj
.
我是TeamCity的新手,所以我不知道该如何处理.我尝试使用Command Line
运行器添加构建步骤,但是由于错误(Command Line) failed
而失败.您如何实现的?
尝试使用msbuild脚本.可以在Teamcity中指定Msbuild脚本,您也可以传入参数以对其进行自定义.
另一个不错的阅读方法是优雅的代码,对.NET项目实施TeamCity,第4部分:使用构建脚本 >博客社区. p>
I am trying to get continuous integration setup using TeamCity to automatically build and release our application and Windows services. The solution currently consists of a web application and 2 services (amongst a host of other projects, but all that gets deployed is the app and services) - the services are packaged into .msi installers using Visual Studio 2010 setup projects (.vdproj
).
The web application isn't an issue because I can just use MsBuild.exe
to publish. However, MsBuild.exe
doesn't build .vdproj
projects. One solution I've come across is to use devenv.com
, e.g. "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.com" SolutionFile.sln /Build "Release" /Project SetupProjectFile.vdproj
.
I'm new to TeamCity so I don't know how to approach this. I've tried adding a build step using the Command Line
runner, but that just fails with the error (Command Line) failed
. How do you achieve this?
Try using msbuild scripts. Msbuild scripts can be specified in Teamcity and you can pass in parameters to customise it as well.
Another good read is Implementing TeamCity for .NET Projects, Part 4: Using Build Scripts by Elegant Code Blogging Community.
这篇关于如何使用TeamCity构建.vdproj msi?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!