Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get version number at runtime
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00968397
Message ID:
00969193
Views:
12
>I thought this would be easy. I want to know the major, minor, buid and revision numbers at run-time.
>The code I thought would work didn't work.
>
>System.Reflection.AssemblyName myAssName = new System.Reflection.AssemblyName();
>MessageBox.Show("Major:"+myAssName.Version.Major.ToString()+"\nMinor:"+myAssName.Version.Minor.ToString()+"\nBuild:"+myAssName.Version.Build.ToString()+"\nRev:"+myAssName.Version.Revision.ToString());
>
>
>How do I get this information?
>
>Thanks,
>Einar

I think there have been a few threads on this. If you are using a winform app you can use:

System.Windows.Forms.Application.ProductVersion

not sure if there is an equivelent shortcut for asp.net apps.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform