【问题标题】:Getting details of a DLL in .NET在 .NET 中获取 DLL 的详细信息
【发布时间】:2023-03-22 04:16:01
【问题描述】:

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

我特别想阅读“产品名称”字段。

【问题讨论】:

    标签: c# .net file dll properties


    【解决方案1】:

    使用FileVersionInfo...你可以得到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
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-03-20
      • 2014-06-26
      • 2012-06-02
      • 2020-10-08
      • 2018-08-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多