<PackageReference Include="NUnit" Version="3.13.0" />

RuntimeFramework

public sealed class RuntimeFramework
RuntimeFramework represents a particular version of a common language runtime implementation.
public static readonly Version DefaultVersion

DefaultVersion is an empty Version, used to indicate that NUnit should select the CLR version to use for the test.

public static RuntimeFramework CurrentFramework { get; }

Static method to return a RuntimeFramework object for the framework that is currently in use.

public bool AllowAnyVersion { get; }

Return true if any CLR version may be used in matching this RuntimeFramework object.

public Version ClrVersion { get; }

The CLR version for this runtime framework

public string DisplayName { get; }

Returns the Display name for this framework

public Version FrameworkVersion { get; }

The framework version for this runtime framework

public RuntimeType Runtime { get; }

The type of this runtime framework

public RuntimeFramework(RuntimeType runtime, Version version)

Construct from a runtime type and version. If the version has two parts, it is taken as a framework version. If it has three or more, it is taken as a CLR version. In either case, the other version is deduced based on the runtime type and provided version.

public static RuntimeFramework Parse(string s)

Parses a string representing a RuntimeFramework. The string may be just a RuntimeType name or just a Version or a hyphenated RuntimeType-Version or a Version prefixed by 'versionString'.

public bool Supports(RuntimeFramework target)

Returns true if the current framework matches the one supplied as an argument. Two frameworks match if their runtime types are the same or either one is RuntimeType.Any and all specified version components are equal. Negative (i.e. unspecified) version components are ignored.