- Only for .NET assembly
System.Reflection.Assembly AssemblyFileInfo = System.Reflection.Assembly.Load(FileAppPath);
Console.WriteLine (AssemblyFileInfo.GetName().Version); - For all .NET and native assembly
FileVersionInfo AssemblyFileVersion = System.Diagnostics.FileVersionInfo.GetVersionInfo(FileAppPath);
Console.WriteLine(AssemblyFileVersion.FileVersion)
giovedì 9 luglio 2009
Get the version information of an extern assembly
We have more ways to get the information of an assembly, the most two I use are:
Etichette:
Assembly,
c#,
FileInfo,
FileVersion,
Reflection
Iscriviti a:
Post (Atom)