[Mono-list] How to know the assembly version?
Petit Eric
surfzoid at gmail.com
Wed Dec 3 12:38:42 EST 2008
2008/12/3 Esqueleto <esqueleto at tusofona.com>:
>
> How can I know the version of the DLL in linux?
>
> there is any command to know that? Of couse I can create a small program
> that receive the dll name and by reflection print that in the console, but,
> there is any standard command to know that?
>
> I can see the version of the dll or exe in windows and I want to know if in
> the linux we have the same file version.
something like that ? :
67
68 private void About_Shown(object sender, EventArgs e)
69 {
70 try
71 {
72 this.LblVers.Text = String.Format("Version {0}",
Application.ProductVersion) + String.Format(" Build {0}",
AssemblyVersion);
73 this.listView1.Items.Clear();
74 foreach (Assembly asm in
AppDomain.CurrentDomain.GetAssemblies())
75 {
76 AssemblyName name = asm.GetName();
77 FileInfo FsInf = new System.IO.FileInfo(asm.Location);
78
this.listView1.Items.Add(FsInf.Name).SubItems.AddRange(new string[] {
name.Version.ToString(), asm.Location });
79 }
80 }
81 catch (Exception ex)
82 {
83 MessageBox.Show(ex.Message + Environment.NewLine
+ ex.StackTrace, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
84 Debug.WriteLine(DateTime.Now + ": " + ex.Message
+ Environment.NewLine + ex.StackTrace);
85 }
86 }
>
>
> tkx in advance
> Paulo Aboim Pinto
> Odivelas - Portugal
> --
> View this message in context: http://www.nabble.com/How-to-know-the-assembly-version--tp20817393p20817393.html
> Sent from the Mono - General mailing list archive at Nabble.com.
>
> _______________________________________________
> Mono-list maillist - Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
--
Cordially.
Small Eric Quotations of the days:
---------------------------------------------------------------------------
If one day one reproaches you that your work is not a work of
professional, say you that:
Amateurs built the arch of Noah, and professionals the Titanic.
---------------------------------------------------------------------------
Few people are done for independence, it is the privilege of the powerful ones.
---------------------------------------------------------------------------
No key was wounded during the drafting of this message.
More information about the Mono-list
mailing list