Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 614
g t Avatar asked Sep 01 '25 22:09

g t


1 Answers

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
like image 171
curtisk Avatar answered Sep 03 '25 12:09

curtisk