RuntimeInformation.FrameworkDescription 属性

定义

获取正在其上运行应用的 .NET 安装的名称。Gets the name of the .NET installation on which an app is running.

public:
 static property System::String ^ FrameworkDescription { System::String ^ get(); };
public static string FrameworkDescription { get; }
member this.FrameworkDescription : string
Public Shared ReadOnly Property FrameworkDescription As String

属性值

String

正在其上运行应用的 .NET 安装的名称。The name of the .NET installation on which the app is running.

注解

属性返回一个字符串,该字符串指示当前正在执行的 .NET 实现的名称。The property returns a string that indicates the name of the currently executing .NET implementation. 字符串以以下说明之一开头,通常后跟当前版本:The string starts with one of the following descriptions, usually followed by the current version:

  • .NET 5.0 和更高版本的 ".NET" () ".NET" (for .NET 5.0 and later versions)
  • .NET Core 1.0 的 ".NET Core" (-3.1) ".NET Core" (for .NET Core 1.0 - 3.1)
  • ".NET Framework"".NET Framework"
  • ".NET Native"".NET Native"

适用于