How to get the running exe File Version

 

Nice and simple, get the running assembly, get the AssemblyName details object, get the version property.

 

            Assembly asm =  Assembly.GetExecutingAssembly();
            AssemblyName AssDetails = asm.GetName();
            String versionAsString = AssDetails.Version.ToString();

One Response to “How to get the running exe File Version”

Leave a Reply