AlastairLundy.OsReleaseNet 2.0.0

Prefix Reserved
dotnet add package AlastairLundy.OsReleaseNet --version 2.0.0
                    
NuGet\Install-Package AlastairLundy.OsReleaseNet -Version 2.0.0
                    
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="AlastairLundy.OsReleaseNet" Version="2.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AlastairLundy.OsReleaseNet" Version="2.0.0" />
                    
Directory.Packages.props
<PackageReference Include="AlastairLundy.OsReleaseNet" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AlastairLundy.OsReleaseNet --version 2.0.0
                    
#r "nuget: AlastairLundy.OsReleaseNet, 2.0.0"
                    
#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.
#:package AlastairLundy.OsReleaseNet@2.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=AlastairLundy.OsReleaseNet&version=2.0.0
                    
Install as a Cake Addin
#tool nuget:?package=AlastairLundy.OsReleaseNet&version=2.0.0
                    
Install as a Cake Tool

OsReleaseNet

Linux OsRelease detection, SteamOS detection, and helpful detection code for Linux.

OsReleaseNet NuGet NuGet

Table of Contents

Features

  • Support for detecting Linux OsRelease information
  • Support for detecting SteamOS and SteamDeck information

How to install and use OsReleaseNet

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

Compatibility

OsReleaseNet supports:

  • .NET 8
  • .NET 9

How to build the code

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

Roadmap

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 aim focus on one or more of the following:

  • Improving or adding Linux detection code
  • Possibly adding support for FreeBSD and/or other BSD operating systems

How to contribute to the project

If you'd like to contribute to the code, please fork the project, make your changes, and then open a Pull Request.

Credits/ Acknowledgements

Projects

For more information, please see the THIRD_PARTY_NOTICES file.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.0 142 9/10/2025
1.1.2 153 8/19/2025
1.1.1 232 8/5/2025
1.1.0 412 7/25/2025
1.0.3 84 7/19/2025
1.0.2 149 6/29/2025
1.0.1 181 6/14/2025
1.0.0 153 6/5/2025

## Changes

- Bump AlastairLundy.DotExtensions from 7.6.5 to 8.3.0 @[dependabot[bot]](https://github.com/apps/dependabot) (#19, #20, & #21)
- Remove .NET Standard 2.0 support @alastairlundy (#10)

## 🚀 Features

- Add Freebsd support @alastairlundy (#11)
- Made Parser logic more easily maintainable and separated it into abstraction and implementation files
- Removed LTS detection due to potential unreliability
- Added missing xml doc comments
- Enabled better support for Linux OsRelease files that contain multiple values for "ID_LIKE" property
- Fixed several incorrect exception messages thrown if running on an unsupported operating system.