Getting details of a DLL in .NET
Is there a way to get the values of various properties of (both .NET and non-.NET) DLLs 开发者_运维百科in .NET?
I'd like to read the 'Product name' field in particular.
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
精彩评论