OSVersionExt 1.0.1
See the version list below for details.
dotnet add package OSVersionExt --version 1.0.1
NuGet\Install-Package OSVersionExt -Version 1.0.1
<PackageReference Include="OSVersionExt" Version="1.0.1" />
paket add OSVersionExt --version 1.0.1
#r "nuget: OSVersionExt, 1.0.1"
// 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 | Versions 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. |
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.
|
Initial release