|
-
Aug 18th, 2003, 01:42 PM
#1
Thread Starter
Lively Member
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?
-
Aug 18th, 2003, 02:06 PM
#2
Frenzied Member
That's Application.ProductVersion.
'Heading for the automatic overload'
Marillion, Brave, The Great Escape, 1994
'How will WE stand the FIRE TOMORROW?'
Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979
-
Aug 18th, 2003, 03:13 PM
#3
Thread Starter
Lively Member
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???
-
Aug 18th, 2003, 03:35 PM
#4
Frenzied Member
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.
'Heading for the automatic overload'
Marillion, Brave, The Great Escape, 1994
'How will WE stand the FIRE TOMORROW?'
Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|