App.Major, App.Minor, App.Revision in .Net

  • Thread starter Thread starter W1ld0ne [MCSD]
  • Start date Start date
W

W1ld0ne [MCSD]

In vb 6 objects you could build a .Version method that returned the version
of your object using the App.Major & "." & app.Minor & "." & App.Revision
method.

How do you do this in .Net?

Thanks
David
 
W1ld0ne said:
In vb 6 objects you could build a .Version method that returned the
version of your object using the App.Major & "." & app.Minor & "." &
App.Revision method.

How do you do this in .Net?

<F1>
Visual Studio.NET
Visual Basic and Visual C#
Upgrading applications
Upgrading from VB 6.0
Introduction in vB.Net for experienced VB users
Changes in Forms in VB.NET
Changes in Controls in VB.NET
Changes in the App object

(see hints in signature)
 
Thomas, thanks dude, this works great in Windows Applications, but not in
Class modules....

Anyone have any clues?

Thanks
David
 
Found the answer thanks to Armin:

Public ReadOnly Property Version() As String

Get

Return
(System.Diagnostics.FileVersionInfo.GetVersionInfo(System.Reflection.Assembl
y.GetExecutingAssembly.Location).FileVersion)

End Get

End Property
 
W1ld0ne said:
Thomas, thanks dude, this works great in Windows Applications, but
not in Class modules....

What if the class module is in a Windows applicaton? ;-)
 
Back
Top