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 ...

Get Inside the Microsoft® Build Engine: Using MSBuild and Team Foundation Build 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.