What is the best way to get the application name (i.e MyApplication.exe) of the executing assembly from a referenced class library in C#?
I need to open the applicat
If you want to read (and display) version number:
Assembly ass = System.Reflection.Assembly.GetExecutingAssembly(); AssemblyName assname = ass.GetName(); Version ver=assname.Version;
Somewhere in application (ie Title block in a Windows form)
this.Text = "Your title Version " + ver;