reflection/app version 
Author Message
 reflection/app version


A simple task, i want to retrieve the version of the currently executing
assembly the following code retrieves all other Attributes of the assembly,

Dim myatt As AssemblyVersionAttribute
Dim obj As Object
Dim myAssembly As [Assembly]
Dim attributes() As Object
myAssembly = [Assembly].GetExecutingAssembly
attributes = myAssembly.GetCustomAttributes(False)

For Each obj In attributes

What am i missing?


Sat, 08 Jan 2005 03:27:02 GMT  
 reflection/app version

>What am i missing?

AssemblyVersionAttribute is a pseudo-custom attribute that gets
treated specially during compilation, and isn't represented like other
custom attributes in metadata. To retrieve the version, you use


Mattias Sj?gren (VB MVP)

Sat, 08 Jan 2005 08:58:50 GMT  
 [ 2 post ] 

 Relevant Pages 

1. Reflection assembly version recognition...

2. how to find out if app running on A2K runtime or full version

3. Run-Time version of Access VBA app

4. get windows installer version in app

5. Setup projects and removing previous versions of the app

6. New Version Checking to my app.

7. Version Number of App at run time

8. Suggestions needed about how an app should check its database version

9. Storing app version number with database file

10. Add Version property to a vb3 app

11. Need help extracting Version Information from compiled apps...

12. Problem with my apps icons when using SetupWizard (VB4 32-bit version)


Powered by phpBB® Forum Software