Christian Blackburn said:
Thank you very much for the info. I went with: <Assembly:
AssemblyVersion("1.0.6.*")> for v1.06. Do you know how to access
individual parts of the version number from code at runtime. I
realize I can parse the periods in the string, but there should be a
way to access app.major, minor, revision, etc..
Seems like you are coming from VB6 (when mentioning about app.major, ...):
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB/vbcon/html/vxconchangestoappobject
invisualbasicnet.htm
(see hints in signature)
Imports System.Diagnostics
'...
Dim FVI As FileVersionInfo
FVI = FileVersionInfo.GetVersionInfo( _
System.Reflection.Assembly.GetExecutingAssembly.Location _
)
MsgBox(FVI.FileMajorPart)
MsgBox(FVI.FileMinorPart)
MsgBox(FVI.FileBuildPart)
MsgBox(FVI.FilePrivatePart)
MsgBox(FVI.FileVersion)
--
Armin
- Links might be split into two lines. Concatenate them using notepad.
- Links might require to add a ".nnnn" after the "2003FEB", e.g.
"2003FEB.1033" for localized versions.
- Links starting with "ms-help" are URLs for the document explorer (<F1>).
Paste them in the URL textbox and press enter. Using internal help (menu
tools -> options -> environment -> help), display the "Web" toolbar that
contains the textbox.