Environment.Version Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets a Version1 object that describes the major, minor, build, and revision numbers of the common language runtime.

Namespace:  System2
Assembly:  mscorlib (in mscorlib.dll)
C#
public static Version Version { get; }

Property Value

Type: System.Version1
An object that displays the version of the common language runtime.

For more information about the version of the common language runtime that is installed with each version of the .NET Framework, see .NET Framework Versions and Dependencies3.

The following example displays the version of the common language runtime. (The version is omitted from the example output for security reasons.)

C#

// Sample for the Environment.Version property
using System;

class Sample
{
    public static void Main()
    {
    Console.WriteLine();
    Console.WriteLine("Version: {0}", Environment.Version.ToString());
    }
}


.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Portable Class Library

Supported in: Portable Class Library

Windows 8 Consumer Preview, Windows Server 8 Beta, Windows 7, Windows Server 2008 SP2, Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements4.

Links Table
1http://msdn.microsoft.com/en-us/library/system.version(v=vs.110).aspx
2http://msdn.microsoft.com/en-us/library/system(v=vs.110).aspx
3http://msdn.microsoft.com/en-us/library/bb822049(v=vs.110).aspx
4http://msdn.microsoft.com/en-us/library/8z6watww(v=vs.110).aspx
5http://msdn.microsoft.com/en-us/library/system.environment(v=vs.110).aspx
Community Content Add
Annotations FAQ