开发者

Getting details of a DLL in .NET

开发者 https://www.devze.com 2022-12-24 04:46 出处:网络
Is there a way to get the values of various properties of (both .NET and non-.NET) DLLs 开发者_运维百科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
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号