开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜