MSBuild autoincrement version - TFS2010
I created a build definition with some MSBuild Arguments (/target:Publish /property:PublishDir=\mypc\tmp\ /property:ApplicationVersion=1.0.0.1)
What's the best way to increment the ApplicationVersion for each build开发者_Python百科 automatically?
First of all I suggest you make sure all projects in your solution use a shared AssemblyInfo file (as mentioned here).
Then alter your build script so the file is checked out, the version number increased and saved, then checked in again.
To do that have a look at the community build tasks, or create your own.
精彩评论