Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I use <a href="https://en.wikipedia.org/wiki/Hudson_%28software%29" rel="nofollow">Hudson</a> as a build server and <a href="http://en.wikipedia.org/wiki/MSBuild" rel="nofollow">MSBuild</a> to do the build. Hudson sets an environment variable with the build number. I then pass that environment variable as a command line argument to a program I wrote that parses the <code>assemlyinfo.cs</code> file and updates the assembly verison, file version and the assembly informational version.</p> <p>An alternative approach would be to create a custom task to do this instead of an executable (Even easier now since it now supports <a href="http://msdn.microsoft.com/en-us/library/dd722601.aspx" rel="nofollow">inline tasks</a>). The previous version of <a href="http://en.wikipedia.org/wiki/Team_Foundation_Server" rel="nofollow">TFS</a> did something similar where it set an enviornment variable, but it may have changed in TFS 2010.</p> <p>Here are resources that may help you with that:</p> <ul> <li><p><em><a href="http://www.wintellect.com/cs/blogs/jrobbins/archive/2009/11/09/tfs-2010-build-number-and-assembly-file-versions-completely-in-sync-with-only-msbuild-4-0.aspx" rel="nofollow">TFS 2010 Build Number and Assembly File Versions: Completely In Sync with Only MSBuild 4.0</a></em></p></li> <li><p><em><a href="http://www.codewrecks.com/blog/index.php/2009/08/21/take-control-of-assembly-numbering-during-a-tfs-build/" rel="nofollow">Take control of assembly numbering during a TFS build</a></em></p></li> <li><p><em><a href="http://msdn.microsoft.com/en-us/library/bb399152.aspx" rel="nofollow">GetBuildProperties Task</a></em> </p></li> </ul> <p>Also, we're using the <a href="http://msdn.microsoft.com/en-us/library/acz3y3te%28v=vs.100%29.aspx" rel="nofollow">Mage</a> command line to create the <a href="http://en.wikipedia.org/wiki/ClickOnce" rel="nofollow">ClickOnce</a> application and deployment manifest. We call Mage as an <code>Exec</code> task in the MSBuild project.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload