C# Tutorials - Herong's Tutorial Examples - v3.32, by 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.
Table of Contents
Logical Expressions and Conditional Statements
Visual C# 2010 Express Edition
C# Compiler and Intermediate Language
Compiling C# Source Code Files
MSBuild - Microsoft Build Engine
►System.Diagnostics.FileVersionInfo Class
Public Properties of FileVersionInfo Class
Creating FileVersionInfo Objects
ShowFileVersionInfo.cs - Print File Version Information
Displaying Version Information using Windows Explorer
Displaying Version Information using PE Explorer
WPF - Windows Presentation Foundation