Build AutomationA guide to automate the build using MSBuild for a ClickOnce application hosted on CodePlex.
This is what I wanted my automated build to do:
- Get the latest version from CodePlex
- Update the version number in AssemblyInfo.cs
- Build the project
- Check-in the updated AssemblyInfo.cs
- Label the project with the version number
- 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