views:

51

answers:

1

Is there a way to get the values of various properties of a (both .NET and non-.NET) DLL via C#?

I'd like to read the 'Product name' field in particular.

+4  A: 

Utilize FileVersionInfo...you can get quite a bit of info from this

using System.Diagnostics;

FileVersionInfo myFileVersionInfo = FileVersionInfo.GetVersionInfo("C:\\temp\\Test.dll");
MessageBox.Show(myFileVersionInfo.ProductName.ToString()); //here it is
curtisk