TFS and msbuild version number with last changeset

后端 未结 4 976
南笙
南笙 2020-12-09 05:06

I want to create a build number which looks like Major.minor.Date.LastChangeSetInTFS, the problem is how to get last changeset number from the TFS. Is there any property, or

4条回答
  •  Happy的楠姐
    2020-12-09 05:18

    Check out following extension projects. You'll find about 5 different ways to solve your problem.

    • MSBuild Extension Pack - actively maintained, this extension provides over 280 tasks
    • MSBuild Community Tasks Project - not maintained since 2007, this set of ~90 tasks still has a few unique tasks, namely the flat-file-based Version task
    • SDC Tasks Library - not maintained since Aug 2008, this extension have been absorbed into MSBuild Extension Pack. If there's something you can't find in MSBuild Extension Pack, check this one out, with its portfolio of 300+ tasks chances are, it may have what you need.

提交回复
热议问题