Search Wiki:
Build Automation
A guide to automate the build using MSBuild for a ClickOnce application hosted on CodePlex.

This is what I wanted my automated build to do:

  1. Get the latest version from CodePlex
  2. Update the version number in AssemblyInfo.cs
  3. Build the project
  4. Check-in the updated AssemblyInfo.cs
  5. Label the project with the version number
  6. Publish the ClickOnce package to my webserver

In order to achieve this I used the CodePlex Source Control Client (cpc.exe) to perform the get latest and check-ins. I was not able to achieve #5 as the cpc client does not provide labelling. Maybe once the SvnBridge supports it I can upgrade this guide to use a SubVersion client.

I also wrote a command line utility SetVersion.exe utility that updates the version number on an AsssemblyInfo.cs or .vb file. The source for this is published as SetVersion http://code.msdn.microsoft.com/setversion on the MSDN Code Gallery.


Author: Merill Fernando http://www.merill.net See this post for more details http://www.merill.net/post/2008/10/Automate-Build-for-a-ClickOnce-Application-Hosted-on-CodePlex-using-MSBuild.aspx
Last edited Oct 22 2008 at 12:53 AM  by merill, version 3
Updating...
Page view tracker