>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.