Version information from EXEs, DLLs, etc?

H

Homer J. Simpson

Is there a nice set of .NET functions built into the framework to retrieve
file version information embedded in EXEs, DLLs, etc? I'm talking about the
strings such as Company, File Version, Copyright, Product Name, and so
on...which you normally see in the Version tab of an EXE's Properties dialog
box.

I used to do this with Win32's GetFileVersionInfo() C API.
 
M

Mattias Sjögren

Is there a nice set of .NET functions built into the framework to retrieve
file version information embedded in EXEs, DLLs, etc?

Yes, look at the FileVersionInfo class.


Mattias
 
N

Nicholas Paldino [.NET/C# MVP]

You can use the FileVersionInfo class in the System.Diagnostics
namespace.
 
H

Homer J. Simpson

You can use the FileVersionInfo class in the System.Diagnostics namespace.

Exactly what I needed. Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top