Assembly Version Number AutoIncrement

  • Thread starter Thread starter Rob
  • Start date Start date
R

Rob

Hi Gurus,
Is there any way that whenever I compile my project it creates a new version
number.

I have set my AssemblyVersion as <Assembly:Assembly("5.1.*")>.
But it changes the verison only once a day, not everytime I compile.

I am looking for a way to get a new verison number automatically everytime I
compile.

Thanks for any suggestion/advice you can provide.
Rob.
 
Rob said:
Is there any way that whenever I compile my project it creates a new version
number.

I have set my AssemblyVersion as <Assembly:Assembly("5.1.*")>.
But it changes the verison only once a day, not everytime I compile.

It changes each time you open the Project to something vaguely
time-related; I don't know exactly what, though.
I am looking for a way to get a new verison number automatically everytime I
compile.

Are you writing Libraries (.dll's)?
If so, you do /not/ want the version to change.

Assembly version numbers are very, /very/ important when loading
libraries into other applications.

For the "front-line" exe's, does it matter?

HTH,
Phill W.
 
Phill said:
Are you writing Libraries (.dll's)?
If so, you do /not/ want the version to change.

One of the modifications I made to the macro I mentioned was to change it to
increment AssemblyFileVersion rather than AssemblyVersion. AssemblyVersion
stays at 1.0.0.0 always for exactly the reasons you mention. It was a huge
relief when I worked out that versioning could be controlled in this way, as
when I was actually changing the AssemblyVersion things were becomes
extremely difficult to manage -- particularly across an entire development
team.
 
Back
Top