O'Reilly logo

Inside the Microsoft® Build Engine: Using MSBuild and Team Foundation Build by William Bartholomew, Sayed Ibrahim Hashimi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Versioning

Assembly Versioning

One of the most common customizations that people want to make to the default Team Build process is stamping each assembly with a unique version number each time they’re built. Assemblies have two version numbers:

  • Assembly Version. Used by the .NET Framework for locating, loading, and referencing assemblies.

  • Assembly File Version. Visible in file’s properties in Windows Explorer.

These version numbers are both stored as assembly-level attributes called AssemblyVersion and AssemblyFileVersion respectively and are typically set in a project’s AssemblyInfo.cs/.vb file.

The Assembly Version typically stores only the major and minor version of the product being built with the build and revision fields left as zero. This is ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required