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
Titre:
Get version number at runtime
Divers
Thread ID:
00968397
Message ID:
00968397
Vues:
61
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
Semper ubi sub ubi.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform