PROPERTY

RuntimeInformation.FrameworkDescription

Reports a descriptive name of the runtime currently executing the application. Do not treat the string as a project target framework moniker or a supported semantic-version protocol.

Formal Syntax & Structure

csharp syntaxcsharp
RuntimeInformation.FrameworkDescription

Working Example

Example Snippetcsharp
using System;using System.Collections.Generic;using System.Runtime.InteropServices;Console.WriteLine(RuntimeInformation.FrameworkDescription); // Environment-dependent
C# & .NET Reference