C# Tutorials - Herong's Tutorial Examples - Version 3.30, by Dr. Herong Yang
What Is FileVersionInfo?
This section describes what is FileVersionInfo - a .NET Framework class in the System.Diagnostics namespace. FileVersionInfo class can be used to provide version number and other version information for a physical file on disk.
What Is FileVersionInfo? FileVersionInfo is .NET Framework class under namespace of System.Diagnostics.
System.Diagnostics.FileVersionInfo class can be used to provide version number and other version information for a physical file on disk.
Version information is usually built into Windows executable files with extensions of .exe or .dll. Other types of file, for example text files, do not have version information built in.
Almost every Windows executable file, .exe or .dll file, is a Portable Executable (PE) format file, which consists of a PE header and a number of sections after the header. You could get the version information from a PE file using a Hex editor. But you have to have a very good understanding of the PE file format.
However, if you know how to write a C# program you can use the FileVersionInfo class to retrieve version information, version number, file name, file description, product name, company name, etc., from any PE files.
Last update: 2012.
Table of Contents