在.NET中获取DLL的详细信息

g t*_*g t 3 .net c# dll properties file

有没有办法在.NET中获取(.NET和非.NET)DLL的各种属性的值?

我想特别阅读"产品名称"字段.

cur*_*isk 9

利用FileVersionInfo ...你可以从中获得相当多的信息

using System.Diagnostics;

FileVersionInfo myFileVersionInfo = FileVersionInfo.GetVersionInfo("C:\\temp\\Test.dll");
MessageBox.Show(myFileVersionInfo.ProductName.ToString()); //here it is
Run Code Online (Sandbox Code Playgroud)