How to Retrieve dlls version?

Hi,

My app (C# 2.0) used some dlls, some locals and some in GAC.
For support, I need to retrieve the dlls version (local and GAC) and the dll file version.
How can I do this?

[203 byte] By [TMF] at [2007-12-24]
# 1

To see the version number of the .dlls that are installed in the GAC you can use the Window's shell extension. Use windows explorer and navigate to c:\windows\assembly (or wherever your windows directory is located). It should show you a view that contains the entire strong name of the assembly, including the assembly name, version number, culture, public key token, and processor architecture.

For the assemblies that aren't loaded in the GAC, you can use the ILDasm utility. Open the "Visual Studio 2005 command prompt" located in the start menu under All Programs | Microsoft Visual Studio 2005 | Visual Studio Tools (it has the correct paths set). Navigate to the directory that contains the assembly for which you'd like to know the assembly version. Type "ildasm <assemblyname>." Look at the grey pane at the bottom of the window that pops up, it should say something like ".ver 1:2:0:1." That's the version number.

Anson

AnsonHortonMSFT at 2007-10-8 > top of Msdn Tech,Visual C#,Visual C# IDE...
# 2
OK, but I need to do this in code (I want to build class that collect all data and create xml, so my users can send it to me while I need)
TMF at 2007-10-8 > top of Msdn Tech,Visual C#,Visual C# IDE...
# 3

Sorry, duplicate thread.

Solved on http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=770756&SiteID=1

TMF at 2007-10-8 > top of Msdn Tech,Visual C#,Visual C# IDE...