Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.
This repository was archived by the owner on Aug 30, 2023. It is now read-only.

Report Runtime information in reliable way. #2

Open
@bruno-garcia

Description

@bruno-garcia

Through #237 we've added support to Contexts Interface.

The Runtime information extraction was best effort considering that not even Microsoft has figured out a way to do this properly.

For NET Standard 2.0 we used RuntimeInformation.FrameworkDescription:

On non NET Standard 2.0, it'll fallback to: Environment.Version
This is an issue with .NET Framework 4.6+ as it displays the same version for all newer versions (4.6.1, 4.6.2, 4.7, 4.7.1). Microsoft has a guide on finding out the right .NET Framework version installed and since all of these 4.x versions are all in-place installation on CLR 4, the latest version installed is the version we should report, not the version an assembly was targeting when compiled.

BenchmarkDotNet had good progress with this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions