Version DLLs in build output with build number

Traceability is very important in the software develop lifecycle. Teams strive for traceability between requirements and test cases, code check-ins and builds, and code changes and test runs. Talking of traceability, it would be useful to map the binaries in the build output back to the build. In this recipe, you'll learn how to stamp the DLLs in the build output with the build number they are being generated from.

Getting ready

Scenario: The FabrikamTFVC Team wants to label the source code used in the build and tag the label and build output using the build number:

Getting ready

Download the StampBuildNumber.ps1 script ...

Get Microsoft Team Foundation Server 2015 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.