开发者

Are there installers that can be used to automate builds with msbuild for .NET 2.0 projects

I just realised I can not run my vdproj file from msbuild without calling Visual Studio.

What a showstopper for a开发者_C百科tomated builds!

Can you recommend another installer, that allows to compile your setup for a .NET 2.0 Winform-application from commandline?


WIX see: http://wix.sourceforge.net/

Established, open source MSi based installer. Better still you can migrate buildt msi's from the output of your vdproj. Plus you not longer need to have visual studio to do your builds.


Most any other installer tool can. Inno Setup, NSIS, etc.


We have an automated build setup that uses calls .vdproj files from TeamCity. One key component is that we had to automate generating a new GUID every time we do a deployment build. (Perhaps that is the "showstopper" you were referring to.) Here is a workaround that supports it:

http://www.codeproject.com/KB/install/VersionVDProj.aspx

It parses your .vdproj file and updates the Package and Product codes. Here are some relevant snippets from our MsBuild file that do the deployment setup:

  <Target Name="Update-Vdproj-Version">
    <Exec Command="Tools\VersionVDProj\VersionVDProj.exe -msi Deployment\KillerAppSetup\KipperAppSetup.vdproj version=$(Release)" />
  </Target>

  <Target Name="Build-Setup">
     <Exec Command="$(DevenvPath) KillerAppSetup.sln /build Release" WorkingDirectory="Deployment\KillerAppSetup\" />
  </Target>

So, it can be done, and it is being done!:) Granted that Visual Studio Setup and Deployment projects are fairly primitive, but if they are all you need, this works.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜