Skip to content

Expose OperatingSystem APIs as intrinsic property functions #5982

@akoeplinger

Description

@akoeplinger

These are new in .NET 5.0: https://docs.microsoft.com/en-us/dotnet/api/system.operatingsystem?view=net-5.0

They expose methods for all the common operating systems like OperatingSystem.IsWindows() but also still support the API where you pass in a string: OperatingSystem.IsOSPlatform(string platform).

The new APIs are easier to understand so we should consider exposing them.

Metadata

Metadata

Assignees

Labels

Good First IssueSelf-contained issues good for first-time contributors.triaged

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions