Changing assembly version automatically on build

The idea with the AssemblyInfo task is to:

  1. import Microsoft.VersionNumber.targets
  2. populate the AssemblyInfoFiles item group with the list of AssemblyInfo.* files to be updated
  3. set whatever properties you want to modify - AssemblyMajorVersion, AssemblyMinorVersion, etc.

You can find further info here.

Category: VSTS


Leave a Reply