Issue Title
Detect the .NET core version from a library.
General
I have a library that targets .NET standard 2.0. I need to log the .NET core version of the application using the library for telemetry and troubleshooting purposes. The RuntimeInformation.FrameworkDescription only returns the CLI version, but it works correctly for applications targeting .NET Framework.
Example:
RuntimeInformation.FrameworkDescription return ".NET Core 4.6.28008.01"
Is there any way to reliably get the .NET core version of the application?
Issue Title
Detect the .NET core version from a library.
General
I have a library that targets .NET standard 2.0. I need to log the .NET core version of the application using the library for telemetry and troubleshooting purposes. The
RuntimeInformation.FrameworkDescriptiononly returns the CLI version, but it works correctly for applications targeting .NET Framework.Example:
RuntimeInformation.FrameworkDescriptionreturn ".NET Core 4.6.28008.01"Is there any way to reliably get the .NET core version of the application?