Reputation: 31
I have to show build revision number and last changeset number in the footer of my webpage. I am building my application using tfs.
How can i get the revision number and last changeset number(after the build is completed) ?
Upvotes: 3
Views: 2093
Reputation: 4083
You could create a method in your web application that loads one of the built assemblies and parses the File Version information and presents that in the footer.
Upvotes: 0
Reputation: 5165
You can get Build number
using a Team Foundation Build environment variable: TF_BUILD_BUILDNUMBER
. For more information read the Team Foundation Build environment variables article.
Upvotes: 2