BeyondDimension/OperatingSystem2 is a public repo on GitHub by BeyondDimension. 表示有关操作系统的信息,如版本和平台标识符。. It declares the MIT license on GitHub. It is written mainly in C#, has 10 stars and last changed on 2023-02-09. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read from GitHub on 2026-11-22.
In the maintainer's words. Shown from GitHub; Take My Repo does not keep a copy.
OperatingSystem2
OperatingSystem2.Version() // 获取当前系统版本号。
OperatingSystem2.IsRunningOnMono() // 当前是否使用 Mono 运行时。
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 IsArmOrArm64OrArmv6();
bool IsWasm();
bool IsS390x();
bool IsLoongArch64();
bool IsArmv6();
Questions
What is OperatingSystem2?
BeyondDimension/OperatingSystem2 is a public repo on GitHub by BeyondDimension. 表示有关操作系统的信息,如版本和平台标识符。.
Is OperatingSystem2 open source?
It declares the MIT license on GitHub.
Does OperatingSystem2 run on macOS, Windows or Linux?
Its maker has not tagged a system, so it is unknown here. Its README says what it needs.
How do I install OperatingSystem2?
Open "Take it" on its page: Take My Repo writes an install plan for your machine and hands it to your AI agent (Claude Code, Codex or Cursor), which asks you before each step. Take My Repo has not tested it on any machine.
Is OperatingSystem2 still maintained?
Its last change on GitHub was on 2023-02-09. GitHub counts 0 open issues and pull requests. Take My Repo does not judge from that whether it is maintained.
What do people who ran OperatingSystem2 say?
Nobody has reviewed it on Take My Repo yet, which says nothing about its quality.