-
Environment.version
In my VB6 days I would create a label and everytime I would build a new executable I would change the version manually.
I understand you can change the AssemblyInfo.vb class
<Assembly: AssemblyVersion("1.0.*")>
to change the version.
However, when I change the version like so
<Assembly: AssemblyVersion("1.1.4.0")>
Rebuild my project and then call
Environment.Version.tostring It does not reflect the change
Can someone tell me what I am doing wrong, and If I am calling it properly?
Do I still have to change the AssemblyVersion everytime a want my build to change?
-
That's Application.ProductVersion.
-
Thank You. That does indeed give me the value in the Assembly.
Question. Will this value ever change if I do not change it. i.e. There really is no difference between creating a label and changing the label text or changing the value in the Assembly. You still have to manually change it?
I thought I heard somewhere that .Net will keep track of your version???
-
That minor version numbers change automatically if you have chosen Enebale Incremental Build, in Configuration Properties of your project properties (I am not 100% sure if this is the case). However i dont know how it changes, once used that and sometimes it didn't changed and sometimes changed a lot. There was a thread about this in the past that you may like to read.