Skip to content

Detect correct version of .NET Core #448

@AndreyAkinshin

Description

@AndreyAkinshin

If we run the current version of BenchmarkDotNet on .NET Core, we will get something like this in summary:

  [Host] : .NET Core 4.6.25211.01, 64bit RyuJIT

.NET Core 4.6.25211.01 is the actual value of System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription.
However, it's very confusing because the correct version of .NET Core runtime should be like 1.0.5 or 1.1.2.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions