Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get version number at runtime
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00968397
Message ID:
00969193
Vues:
11
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform