{"id":16481884,"url":"https://github.com/angularsen/osinfo","last_synced_at":"2025-10-27T17:31:52.737Z","repository":{"id":26149397,"uuid":"29594557","full_name":"angularsen/OsInfo","owner":"angularsen","description":"Helpers and extensions when comparing Windows versions.","archived":false,"fork":false,"pushed_at":"2017-01-11T15:57:13.000Z","size":788,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-08T13:46:48.984Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/angularsen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-21T14:54:37.000Z","updated_at":"2024-04-17T09:02:15.000Z","dependencies_parsed_at":"2022-08-01T06:08:32.888Z","dependency_job_id":null,"html_url":"https://github.com/angularsen/OsInfo","commit_stats":null,"previous_names":["anjdreas/osinfo"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angularsen%2FOsInfo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angularsen%2FOsInfo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angularsen%2FOsInfo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angularsen%2FOsInfo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/angularsen","download_url":"https://codeload.github.com/angularsen/OsInfo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238535800,"owners_count":19488593,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T13:08:57.388Z","updated_at":"2025-10-27T17:31:47.338Z","avatar_url":"https://github.com/angularsen.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OsInfo - Operating System Info\nCompare operating system versions, check if OS is 32/64-bit and what service pack is installed.\nTargets .NET 3.5 Client. Supports Windows 8.1 and all previous Windows versions.\n\n## NuGet\nTo install, type ```Install-package OsInfo``` into Package Manager Console in Visual Studio or [visit the nuget page](http://www.nuget.org/packages/osinfo).\n\n## Examples\n```csharp\npublic void PrintCurrentOs()\n{\n    OperatingSystem currentOs = Environment.OSVersion;\n    Console.WriteLine(\"Current OS: \" + currentOs);\n    Console.WriteLine(\"Service pack: \" + (currentOs.GetServicePackVersion() ?? (object)\"(null)\"));\n    \n    // In .NET 4.5+ you can use Environment.Is64BitOperatingSystem instead\n    Console.WriteLine(\"Is 64-bit: \" + currentOs.Is64Bit()); \n    \n    Console.WriteLine();\n    Console.WriteLine(\"Greater than or equal to XP     : \" + currentOs.IsGreaterThanOrEqualTo(OsVersion.WinXP));\n    Console.WriteLine(\"Greater than or equal to Vista  : \" + currentOs.IsGreaterThanOrEqualTo(OsVersion.Vista));\n    Console.WriteLine(\"Greater than or equal to Win7   : \" + currentOs.IsGreaterThanOrEqualTo(OsVersion.Win7));\n    Console.WriteLine(\"Greater than or equal to Win8   : \" + currentOs.IsGreaterThanOrEqualTo(OsVersion.Win8));\n    Console.WriteLine(\"Greater than or equal to Win8.1 : \" + currentOs.IsGreaterThanOrEqualTo(OsVersion.Win8Update1));\n    Console.WriteLine();\n    Console.WriteLine(\"Equal to Win8                   : \" + currentOs.IsEqualTo(OsVersion.Win8));\n    Console.WriteLine(\"Equal to Win7                   : \" + currentOs.IsEqualTo(OsVersion.Win7));\n    Console.WriteLine();\n    Console.WriteLine(\"Less than or equal to Win8      : \" + currentOs.IsLessThanOrEqualTo(OsVersion.Win8));\n    Console.WriteLine(\"Less than or equal to Win7      : \" + currentOs.IsLessThanOrEqualTo(OsVersion.Win7));\n    Console.WriteLine();\n    Console.WriteLine(\"Less than Win8                  : \" + currentOs.IsLessThan(OsVersion.Win8));\n    Console.WriteLine(\"Less than Win7                  : \" + currentOs.IsLessThan(OsVersion.Win7));\n}\n```\n\nYields:\n```\nCurrent OS: Microsoft Windows NT 6.2.9200.0\nService pack: (null)\n\nGreater than or equal to XP     : True\nGreater than or equal to Vista  : True\nGreater than or equal to Win7   : True\nGreater than or equal to Win8   : True\nGreater than or equal to Win8.1 : False\n\nEqual to Win8                   : True\nEqual to Win7                   : False\n\nLess than or equal to Win8      : True\nLess than or equal to Win7      : False\n\nLess than Win8                  : False\nLess than Win7                  : False\n```\n\n## Notes\nWindows 8.1 will report as Windows 8 (6.2.9200) for applications that do not explicitly specify compatibility with Windows 8.1 in their app manifest. [Read more](http://stackoverflow.com/a/17406963/134761).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangularsen%2Fosinfo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fangularsen%2Fosinfo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangularsen%2Fosinfo/lists"}