Groups | Blog | Home
all groups > dotnet general > december 2003 >

dotnet general : How toknow the version of a DLL file without loadin


cnu
12/21/2003 9:49:20 PM
Hi,
I have developed a dll program. I have added a Strong Key
Name to it and registered in C:\WINNT\Assembly\.

In some of my programs, I include this in my project
references and it works. All is well so far. But, I want
to find out the version of this particular dll, with out
loading or adding it to my project references. How can I
accomplish this?

Any help in this regard is highly appreciated!

Regards..
Mattias Sjögren
12/22/2003 9:00:20 PM

[quoted text, click to view]

If you know its path you can use
AssemblyName.GetAssemblyName(@"x:\the.dll").Version



Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
AddThis Social Bookmark Button