user2578750
user2578750

Reputation: 31

how to get tfs build revision number and last changeset number

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

Answers (2)

Nicodemeus
Nicodemeus

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

Morten Frederiksen
Morten Frederiksen

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

Related Questions