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)

6 commenti:

RRave ha detto...

Dear Friends,



I hope you are doing well. I got this email address from one of your contribution web site. I have launched a web site www.codegain.com and it is basically aimed C#,JAVA,VB.NET,ASP.NET,AJAX,Sql Server,Oracle,WPF,WCF and etc resources, programming help, articles, code snippet, video demonstrations and problems solving support. I would like to invite you as an author and a supporter.
Looking forward to hearing from you and hope you will join with us soon.


Thanks & Best Regards,
RRaveen,
Founder CodeGain.com,
http://www.codegain.com.

Dr.Luiji ha detto...

rofl,

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

CLAYMAN ha detto...

http://mipropioandar.blogspot.com/

Itarci 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.

pbsl ha detto...

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

http://feboook.blogspot.com