MSBuild Auto-Increment Version - TFS2010

I created an assembly definition with some arguments MSBuild (/ target: Publish / property: PublishDir = \ mypc \ tmp \ / property: ApplicationVersion = 1.0.0.1)

What is the best way to automatically increase ApplicationVersion for each assembly?

+4
source share
1 answer

First of all, I suggest you make sure that all projects in your solution use the shared AssemblyInfo file (as mentioned here ).

Then modify your build script so that the file is extracted, the version number is incremented and saved, and then installed again.

To do this, review community build tasks or create your own .

+4
source

Source: https://habr.com/ru/post/1347973/


All Articles