Skip to content

Environment.OSVersion.get is deprecated #94

@rksyren

Description

@rksyren

When building we are getting the error Environment.OSVersion.get is deprecated

The following stackoverflow post https://stackoverflow.com/questions/55193222/environment-osversion-get-is-deprecated

says it is not recommended to use this method.

The Environment.OSVersion property does not provide a reliable way to identify the exact operating system and its version. Therefore, we do not recommend that you use this method. Instead:

To identify the operating system platform, use the RuntimeInformation.IsOSPlatform method.

Avoid writing code that depends on a reported operating system version. Instead, check for the availability of the features that your application needs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions