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:
  1. Only for .NET assembly
    System.Reflection.Assembly AssemblyFileInfo = System.Reflection.Assembly.Load(FileAppPath);
    Console.WriteLine (AssemblyFileInfo.GetName().Version);

  2. For all .NET and native assembly
    FileVersionInfo AssemblyFileVersion = System.Diagnostics.FileVersionInfo.GetVersionInfo(FileAppPath);
    Console.WriteLine(AssemblyFileVersion.FileVersion)

4 commenti:

Unknown ha detto...

rofl,

Good job man, I like it a lot!!!
I'll join you immediately, thanks for the info.

Possamai ha detto...

Ciao Luiji, io sono brasiliano, parlo poco italian, lavoro qua in germany, gelateria. io lavorarava in Brasil come software developer con Delphi i Oracle. Adesso voglio emparare programare per Windows Mobile. Cé MSN tu?

Dr.Luiji ha detto...

Ciao Itarci,
Non uso MSN preferisco GTtalk o SkyPe, comunque fammi sapere cosa ti interessa e ti to delle dritte magari per email.
Ciao.

Unknown ha detto...

thanks for sharing your site. there are lots of ebooks are available here

http://feboook.blogspot.com