Versioning .NET builds

后端 未结 8 1380
萌比男神i
萌比男神i 2020-12-14 22:27

Just wondering what\'s the best approach to versioning of .NET builds?

I use:

  • TFS 2013 for version control
  • TFS gated check-ins
  • Wix 3.
8条回答
  •  旧巷少年郎
    2020-12-14 22:48

    I downloaded this script (thanks to MrHinsh's answer), checked-in the script in source control and specified it in the build definition pre-build script path:

    BuildDefPreBuild

    Then I configured build number format as "$(BuildDefinitionName)_1.0.0$(Rev:.r)" (see MrHinsh's answer for details).

    And it works to my surprise.

提交回复
热议问题