A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://learn.microsoft.com/en-us/dotnet/api/system.environment.version below:

Environment.Version Property (System) | Microsoft Learn

Environment.Version Property Definition

Gets a version consisting of the major, minor, build, and revision numbers of the common language runtime.

public:
 static property Version ^ Version { Version ^ get(); };
public static Version Version { get; }
static member Version : Version
Public Shared ReadOnly Property Version As Version
Property Value

The version of the common language runtime.

Examples

The following example displays the version of the common language runtime.

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

class Sample
{
    public static void Main()
    {
    Console.WriteLine();
    Console.WriteLine("Version: {0}", Environment.Version.ToString());
    }
}
// Sample for the Environment.Version property
open System

printfn $"\nVersion: {Environment.Version}"
' Sample for the Environment.Version property
Class Sample
   Public Shared Sub Main()
      Console.WriteLine()
      Console.WriteLine("Version: {0}", Environment.Version.ToString())
   End Sub
End Class
Remarks

For .NET Core 3.x and .NET 5+, the Environment.Version property returns the .NET runtime version number.

For the .NET Framework Versions 4, 4.5, 4.5.1, and 4.5.2, the Environment.Version property returns a Version object whose string representation has the form 4.0.30319.xxxxx. For the .NET Framework 4.6 and later versions, and .NET Core versions before 3.0, it has the form 4.0.30319.42000.

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

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide. In this article

Was this page helpful?


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4