Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying Application Version (AssemblyVersion)

Status
Not open for further replies.

xcalibre

Programmer
Oct 27, 2005
12
0
0
CA
Hi there,

I know that in VB I could get and display the application version with App.Version.Major Minor and so on. I did notice in ASP.Net that I have the AssemblyVersion section in my AssemblyInfo.vb file.

My question is, how can I retrieve that info so that I can display it in a label?

Thanks
Xcalibre

 
Check out the GetName method of the Assembly


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
That was my problem... exactly how to reference the assembly. I was in System, but missed the Reflection. Anyway, I found the following:

System.Reflection.Assembly.GetExecutingAssembly.GetName.Version [.Major, .Minor, .Revision, .Build]

In case anyone else needed to know.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top