-1

The MSDN description for the AssemblyName.Version property state that it "Gets or sets the major, minor, build, and revision numbers of the assembly."

I have tried to set the assembly version but it doesn't work. I set the version of an assembly on one line and try to get it on the next line and that property still contains the previous version.

Unfortunately, the example on the MSDN page only shows how to set the version while building a new assembly but I would like to use this method to increment the version number of an existing assembly.

Does anyone know why this happens? Maybe, I am missing something obvious but this seems strange.

user111
  • 397
  • 3
  • 13

1 Answers1

1

Check out the article:

Automatically update version number

It use the utility, AssemblyInfoUtil.exe to do the changes dynamically

Another interesting article which does the same work by modifying the IL

Modify assembly version numbers

Mrinal Kamboj
  • 11,300
  • 5
  • 40
  • 74