开发者

MSBuild autoincrement version - TFS2010

开发者 https://www.devze.com 2023-02-24 20:20 出处:网络
I created a build definition with some MSBuild Arguments (/target:Publish /property:PublishDir=\\mypc\\tmp\\ /property:ApplicationVersion=1.0.0.1)

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.

0

精彩评论

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