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

 About This Book

 Introduction of C# (C Sharp)

 Data Type and Variables

 Logical Expressions and Conditional Statements

 Arrays and Loop Statements

 Data Type Features

 Floating-Point Data Types

 Passing Parameters to Methods

 Execution Environment Class

 Visual C# 2010 Express Edition

 Class Features

 C# Compiler and Intermediate Language

 Compiling C# Source Code Files

 MSBuild - Microsoft Build Engine

 Memory Usages of Processes

 Multithreading in C#

 Async Feature from C# 5

 System.IO.FileInfo Class

System.Diagnostics.FileVersionInfo Class

What Is FileVersionInfo?

 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

 Partial Classes and Partial Methods

 Outdated Tutorials

 References

 PDF Printing Version