<dinuks@gmail.com> schrieb:
> Does anyone know what the simplest way to retrieve the version number
> of a referenced DLL is?
Solution for referenced assemblies:
\\\
With Me.ListView1
.View = View.Details
Dim c1 As New ColumnHeader
c1.Text = "Library"
c1.Width = 140
Dim c2 As New ColumnHeader
c2.Text = "Version"
c2.Width = 80
.Columns.AddRange(New ColumnHeader() {c1, c2})
For Each m As AssemblyName In _
[Assembly].GetExecutingAssembly().GetReferencedAssemblies()
Dim lvi As New ListViewItem
lvi.Text = m.Name
lvi.SubItems.Add(m.Version.ToString())
.Items.Add(lvi)
Next m
End With
///
For the other DLLs, you could use the 'FileVersionInfo' class to get the
files' version numbers.

Signature
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
jimbo_dk - 18 Jul 2006 02:06 GMT
Works like a charm. FileversionInfo was what I was looking for.
Thanks a lot for the help.
Dinu
> <dinuks@gmail.com> schrieb:
> > Does anyone know what the simplest way to retrieve the version number
[quoted text clipped - 30 lines]
> M V P <URL:http://dotnet.mvps.org/>
> V B <URL:http://classicvb.org/petition/>