Linux and FreeBSD OsRelease detection, SteamOS detection, and helpful detection code for Linux.
- Support for detecting Linux OsRelease information
- Support for detecting SteamOS and SteamDeck information
OsReleaseNet can be installed via the .NET SDK CLI, Nuget via your IDE or code editor's package interface, or via the Nuget website.
| Package Name | Nuget Link | .NET SDK CLI command |
|---|---|---|
| AlastairLundy.OsReleaseNet | AlastairLundy.OsReleaseNet Nuget | dotnet add package AlastairLundy.OsReleaseNet |
OsReleaseNet supports:
- .NET Standard 2.0
- .NET 8
- .NET 9
- .NET 10
To build the project in Debug mode, run the following command: dotnet build -c Debug.
To build the project in Release mode, run the following command: dotnet build -C Release
OsReleaseNet aims to make working with different types in the System namespace in C# easier.
All stable releases must be stable and should not contain regressions.
Future updates should focus on one or more of the following:
- Improving or adding Linux detection code
- Possibly adding support for other Unix or BSD-based operating systems
If you'd like to contribute to the code, please fork the project, make your changes, and then open a Pull Request.
This project would like to thank the following projects for their work:
- Polyfill for simplifying .NET Standard 2.0 support
For more information, please see the THIRD_PARTY_NOTICES file.