OSVersionExt 1.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package OSVersionExt --version 1.0.1
NuGet\Install-Package OSVersionExt -Version 1.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="OSVersionExt" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add OSVersionExt --version 1.0.1
#r "nuget: OSVersionExt, 1.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install OSVersionExt as a Cake Addin
#addin nuget:?package=OSVersionExt&version=1.0.1

// Install OSVersionExt as a Cake Tool
#tool nuget:?package=OSVersionExt&version=1.0.1

Properly detect Windows version in C# .NET – even Windows 10

Allows you to determine the correct Windows version, since System.Environment.OSVersion.Version in .NET Framework and .NET Core until version 4.8 respectively 3.1 returns wrong results on Windows 10. It works starting with Windows 2000 and also on Windows 10/Server 2019/Server 2016 right away.

Target framework

NET Framework 4 (as one of the checks calls Environment.Is64BitOperatingSystem). Yet, you can inject your own environment provider, which runs on lower versions.

Technical information

Please refer to https://www.prugg.at/2019/09/09/properly-detect-windows-version-in-c-net-even-windows-10/

Product Compatible and additional computed target framework versions.
.NET Framework net40 is compatible.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on OSVersionExt:

Repository Stars
freezy/dmd-extensions
A toolbox for virtual pinball dot matrix displays.
Version Downloads Last updated
3.0.0 2,391 8/19/2023
2.0.0 16,376 9/4/2022
1.0.1 1,942 1/30/2022

Initial release