Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environment.OSVersion.get is deprecated #94

Open
rksyren opened this issue Mar 8, 2021 · 0 comments
Open

Environment.OSVersion.get is deprecated #94

rksyren opened this issue Mar 8, 2021 · 0 comments

Comments

@rksyren
Copy link

rksyren commented Mar 8, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant