Skip to content

Environment.Version, RuntimeInformation.FrameworkDescription and file informational version now reflect product versioning #14351

@ericstj

Description

@ericstj

Environment.Version, RuntimeInformation.FrameworkDescription and file informational version now reflect product versioning

See APIs that report version not report product and not file version for updated documentation for this change.

Many of the APIs which returned versions in .NETCore returned the file version of the file instead of the product version. Now these APIs return the product version.

See also https://github.com/dotnet/corefx/issues/35573.

Version introduced

3.0

Old behavior

Environment.Version, RuntimeInformation.FrameworkDescription, and file informational versions contained versions like 4.6.x.y, or 4.7.x.y. These versions were not aligned with the product versioning.

New behavior

Environment.Version, RuntimeInformation.FrameworkDescription, and file informational versions return versions that match the product branding for the release, eg: 3.0.0

Reason for change

Enable access to accurate and precise product version information

Recommended action

We don't expect users to have to react to this change, but users should now find these APIs more useful when identifying the version of .NETCore they are running on.

Category

  • CoreFx

Affected APIs

System.Environment.Version
System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription

File version properties as follows:
image


Issue metadata

  • Issue type: breaking-change

Metadata

Metadata

Assignees

No one assigned

    Labels

    breaking-changeIndicates a .NET Core breaking change

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions