Get assembly file version in c#

version

From here: https://stackoverflow.com/a/909583/987949


System.Reflection.Assembly assembly = System.Reflection.Assembly.GetExecutingAssembly();
System.Diagnostics.FileVersionInfo fvi = System.Diagnostics.FileVersionInfo.GetVersionInfo(assembly.Location);
string version = fvi.FileVersion;

Post a Comment

Previous Post Next Post