OperatingSystem2 1.4.3
.NET 5.0
This package targets .NET 5.0. The package is compatible with this framework or higher.
.NET Core 3.0
This package targets .NET Core 3.0. The package is compatible with this framework or higher.
.NET Standard 1.0
This package targets .NET Standard 1.0. The package is compatible with this framework or higher.
.NET Framework 3.5
This package targets .NET Framework 3.5. The package is compatible with this framework or higher.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package OperatingSystem2 --version 1.4.3
NuGet\Install-Package OperatingSystem2 -Version 1.4.3
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.4.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add OperatingSystem2 --version 1.4.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: OperatingSystem2, 1.4.3"
#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.4.3 // Install OperatingSystem2 as a Cake Tool #tool nuget:?package=OperatingSystem2&version=1.4.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
OperatingSystem2
OperatingSystem2.Version // 获取当前系统版本号。
OperatingSystem2.IsRunningOnMono // 当前是否使用 Mono 运行时。
OperatingSystem2.IsDesktop // 指示当前应用程序是否正在 Desktop 上运行。
OperatingSystem2.IsOnlySupportedStore // 指示当前应用程序是否正在仅支持应用商店的平台上运行。
OperatingSystem2.IsRunningAsUwp // 指示当前应用程序是否正在 UWP 上运行。
OperatingSystem2.IsRunningOnXbox // 指示当前应用程序是否正在 Xbox 上运行。
OperatingSystem2.IsRunningOnWSA // 指示当前应用程序是否正在 Windows Subsystem for Android™️ 上运行。
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();
// ----------------------------------------
bool OperatingSystem2.Application.UseAvalonia
bool OperatingSystem2.Application.UseXamarinForms
bool OperatingSystem2.Application.UseMaui
bool OperatingSystem2.Application.UseWindowsForms
bool OperatingSystem2.Application.UseWPF
bool OperatingSystem2.Application.UseUno
Product | Versions 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-ios15.0 is compatible. net6.0-maccatalyst was computed. net6.0-maccatalyst15.0 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. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows 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. monoandroid11.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.19041 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)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETCoreApp 3.0
- No dependencies.
-
.NETCoreApp 3.1
- No dependencies.
-
.NETFramework 3.5
- No dependencies.
-
.NETFramework 4.0
- No dependencies.
-
.NETFramework 4.7.1
- No dependencies.
-
.NETStandard 1.0
- NETStandard.Library (>= 1.6.1)
- Xamarin.Essentials (>= 1.7.0)
-
.NETStandard 1.1
- NETStandard.Library (>= 1.6.1)
- Xamarin.Essentials (>= 1.7.0)
-
.NETStandard 2.0
- Xamarin.Essentials (>= 1.7.0)
-
MonoAndroid 11.0
- Xamarin.Essentials (>= 1.7.0)
-
net5.0
- No dependencies.
-
net5.0-windows7.0
- No dependencies.
-
net6.0
- No dependencies.
-
net6.0-android31.0
- No dependencies.
-
net6.0-ios15.0
- No dependencies.
-
net6.0-maccatalyst15.0
- No dependencies.
-
net6.0-macos10.14
- No dependencies.
-
net6.0-windows7.0
- No dependencies.
-
UAP 10.0.19041
- No dependencies.
-
Xamarin.iOS 1.0
- Xamarin.Essentials (>= 1.7.0)
-
Xamarin.Mac 2.0
- Xamarin.Essentials (>= 1.7.0)
-
Xamarin.TVOS 1.0
- Xamarin.Essentials (>= 1.7.0)
-
Xamarin.WatchOS 1.0
- Xamarin.Essentials (>= 1.7.0)
NuGet packages (7)
Showing the top 5 NuGet packages that depend on OperatingSystem2:
Package | Downloads |
---|---|
BD.Common
次元超越通用基类库 |
|
NotifyIcon.Base
在通知区域创建图标的组件。 |
|
NotifyIcon.Windows
在通知区域创建图标的组件的 Win32 API 实现。 |
|
NotifyIcon.Linux
在通知区域创建图标的组件的 Linux 实现。 |
|
NotifyIcon.Mac
在通知区域创建图标的组件的 macOS 实现。 |
GitHub repositories
This package is not used by any popular GitHub repositories.