OperatingSystem2 1.3.0

.NET 5.0 .NET Core 3.0 .NET Standard 1.0 .NET Framework 3.5
There is a newer version of this package available.
See the version list below for details.
dotnet add package OperatingSystem2 --version 1.3.0
NuGet\Install-Package OperatingSystem2 -Version 1.3.0
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="OperatingSystem2" Version="1.3.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add OperatingSystem2 --version 1.3.0
#r "nuget: OperatingSystem2, 1.3.0"
#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 OperatingSystem2 as a Cake Addin
#addin nuget:?package=OperatingSystem2&version=1.3.0

// Install OperatingSystem2 as a Cake Tool
#tool nuget:?package=OperatingSystem2&version=1.3.0

OperatingSystem2 NuGet version (OperatingSystem2)

OperatingSystem2.Version // 获取当前系统版本号。

OperatingSystem2.IsRunningOnMono // 当前是否使用 Mono 运行时。
OperatingSystem2.IsDesktop // 指示当前应用程序是否正在 Desktop 上运行。
OperatingSystem2.IsOnlySupportedStore // 指示当前应用程序是否正在仅支持应用商店的平台上运行。
OperatingSystem2.IsRunningAsUwp // 指示当前应用程序是否正在 UWP 上运行。
OperatingSystem2.IsRunningOnXbox // 指示当前应用程序是否正在 Xbox 上运行。

OperatingSystem2.IsWindows // 指示当前应用程序是否正在 Windows 上运行。
OperatingSystem2.IsWindowsServer // 指示当前应用程序是否正在 Windows Server 上运行。
OperatingSystem2.IsWindows7 // 指示当前应用程序是否正在 Windows 7 上运行。
OperatingSystem2.IsWindows10AtLeast // 指示当前应用程序是否正在 Windows 10 或更高版本上运行。
OperatingSystem2.IsWindows11AtLeast // 指示当前应用程序是否正在 Windows 11 或更高版本上运行。
OperatingSystem2.IsLinux // 指示当前应用程序是否正在 Linux 上运行。
OperatingSystem2.IsMacOS // 指示当前应用程序是否正在 macOS 上运行。
OperatingSystem2.IsFreeBSD // 指示当前应用程序是否正在 FreeBSD 上运行。
OperatingSystem2.IsAndroid // 指示当前应用程序是否正在 Android 上运行。
OperatingSystem2.IsIOS // 指示当前应用程序是否正在 iOS 上运行。
OperatingSystem2.IsTvOS // 指示当前应用程序是否正在 tvOS 上运行。
OperatingSystem2.IsWatchOS // 指示当前应用程序是否正在 watchOS 上运行。
OperatingSystem2.IsBrowser // 指示当前应用程序是否在浏览器中作为 WASM 运行。


// 检查 Windows 版本是否大于或等于指定版本。
OperatingSystem2.IsWindowsVersionAtLeast(int major, int minor = 0, int build = 0, int revision = 0) 

// 检查 macOS 版本是否大于或等于指定版本。
OperatingSystem2.IsMacOSVersionAtLeast(int major, int minor = 0, int build = 0)

// 检查 FreeBSD 版本是否大于或等于指定版本。
OperatingSystem2.IsFreeBSDVersionAtLeast(int major, int minor = 0, int build = 0, int revision = 0)

// 检查 Android 版本是否大于或等于指定版本。
OperatingSystem2.IsAndroidVersionAtLeast(int sdkInt)
OperatingSystem2.IsAndroidVersionAtLeast(BuildVersionCodes sdkInt)
OperatingSystem2.IsAndroidVersionAtLeast(int major, int minor = 0, int build = 0, int revision = 0)

// 检查 iOS 版本是否大于或等于指定版本。
OperatingSystem2.IsIOSVersionAtLeast(int major, int minor = 0, int build = 0)

// 检查 tvOS 版本是否大于或等于指定版本。
OperatingSystem2.IsTvOSVersionAtLeast(int major, int minor = 0, int build = 0)

// 检查 watchOS 版本是否大于或等于指定版本。
OperatingSystem2.IsWatchOSVersionAtLeast(int major, int minor = 0, int build = 0)

using System.Runtime.InteropServices;

// 正在其上运行当前应用的平台体系结构为 X86 或 X64
bool RuntimeInformation.OSArchitecture.IsX86OrX64()

// 当前正在运行的应用的进程架构为 X86 或 X64
bool RuntimeInformation.ProcessArchitecture.IsX86OrX64()

bool IsArmOrArm64();
bool IsWasm();
bool IsS390x();
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net5.0-windows7.0 is compatible.  net6.0 is compatible.  net6.0-android was computed.  net6.0-android31.0 is compatible.  net6.0-ios was computed.  net6.0-ios13.6 is compatible.  net6.0-maccatalyst was computed.  net6.0-maccatalyst13.5 is compatible.  net6.0-macos was computed.  net6.0-macos10.14 is compatible.  net6.0-tvos was computed.  net6.0-windows was computed.  net6.0-windows7.0 is compatible.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net7.0-windows7.0 was computed. 
.NET Core netcoreapp1.0 was computed.  netcoreapp1.1 was computed.  netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 is compatible.  netcoreapp3.1 is compatible. 
.NET Standard netstandard1.0 is compatible.  netstandard1.1 is compatible.  netstandard1.2 was computed.  netstandard1.3 was computed.  netstandard1.4 was computed.  netstandard1.5 was computed.  netstandard1.6 was computed.  netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net35 is compatible.  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 is compatible.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed.  monoandroid10.0 is compatible. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen30 was computed.  tizen40 was computed.  tizen60 was computed. 
Universal Windows Platform uap was computed.  uap10.0 was computed.  uap10.0.16299 is compatible. 
Windows Phone wp8 was computed.  wp81 was computed.  wpa81 was computed. 
Windows Store netcore was computed.  netcore45 was computed.  netcore451 was computed. 
Xamarin.iOS xamarinios was computed.  xamarinios10 is compatible. 
Xamarin.Mac xamarinmac was computed.  xamarinmac20 is compatible. 
Xamarin.TVOS xamarintvos was computed.  xamarintvos10 is compatible. 
Xamarin.WatchOS xamarinwatchos was computed.  xamarinwatchos10 is compatible. 
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (7)

Showing the top 5 NuGet packages that depend on OperatingSystem2:

Package Downloads
NotifyIcon.Base

在通知区域创建图标的组件。

NotifyIcon.Windows

在通知区域创建图标的组件的 Win32 API 实现。

BD.Common

次元超越通用基类库

NotifyIcon.Linux

在通知区域创建图标的组件的 Linux 实现。

NotifyIcon.Mac

在通知区域创建图标的组件的 macOS 实现。

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.0.0 9,526 1/5/2023
2.0.0 13,875 5/23/2022
1.4.3 6,905 1/28/2022
1.4.2.1 2,954 12/13/2021
1.4.2 11,623 10/22/2021
1.4.0 266 10/21/2021
1.3.0 7,270 9/17/2021
1.2.0 7,001 8/29/2021
1.1.0 648 8/22/2021