AlastairLundy.OsReleaseNet 1.0.1

Prefix Reserved
dotnet add package AlastairLundy.OsReleaseNet --version 1.0.1
                    
NuGet\Install-Package AlastairLundy.OsReleaseNet -Version 1.0.1
                    
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="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AlastairLundy.OsReleaseNet" Version="1.0.1" />
                    
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 1.0.1
                    
#r "nuget: AlastairLundy.OsReleaseNet, 1.0.1"
                    
#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.
#addin nuget:?package=AlastairLundy.OsReleaseNet&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=AlastairLundy.OsReleaseNet&version=1.0.1
                    
Install as a Cake Tool

OsReleaseNet (formerly PlatformKit.Linux, a part of PlatformKit)

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
  • .NET Standard 2.0
  • .NET Standard 2.1

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

This project would like to thank the following projects for their work:

  • Polyfill for simplifying .NET Standard 2.0 & 2.1 support

For more information, please see the THIRD_PARTY_NOTICES file.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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
1.0.1 150 6/14/2025
1.0.0 127 6/5/2025

### Changes since 1.0.0
* Updated DotExtensions dependency from 7.1.1 to 7.2.0
* Updated Polyfill and set it to PrivateAssets="All"