Aligning assembly version numbers with TFS Buildnumber

前端 未结 2 2044
小鲜肉
小鲜肉 2020-12-28 19:41

I am wondering if there is a way to synchronize the build numbers (20080213.1) without using the BuildNumberOverrideTarget where I would have to generate my own build number

2条回答
  •  别那么骄傲
    2020-12-28 20:09

    What you are asking for is very sensible and there are a number of ways to achieve this.

    Personally, when I do this I don't like to check the files in to version control that have the build server generated number in them - it just introduces too many head-aches when merging code across branches but also I like a known version number to be used when a developer does a workstation build vs a proper build server derived assembly to make it really easy to tell them apart.

    For more information on how I like to do it, take a look at the TFS Build Recipies wiki:

    • TFS Build: Assembly Versioning

    or my blog post on the topic

    • Martin Woodward: Aligning Build Numbers with Assembly Versions

    Hope that helps,

    Martin.

提交回复
热议问题