THNETII.Utils.DotnetPlatformInfo 1.0.0-preview3

This is a prerelease version of THNETII.Utils.DotnetPlatformInfo.
dotnet tool install --global THNETII.Utils.DotnetPlatformInfo --version 1.0.0-preview3
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local THNETII.Utils.DotnetPlatformInfo --version 1.0.0-preview3
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=THNETII.Utils.DotnetPlatformInfo&version=1.0.0-preview3&prerelease
                    
nuke :add-package THNETII.Utils.DotnetPlatformInfo --version 1.0.0-preview3
                    

dotnet-platforminfo

.NET Platform Information Command-line Utility

Deployment Latest Status
Build Status Build Status
Nightlies THNETII.Utils.DotnetPlatformInfo package in nightly feed in Azure Artifacts
Azure Artifacts THNETII.Utils.DotnetPlatformInfo package in public feed in Azure Artifacts
NuGet Gallery THNETII.Utils.DotnetPlatformInfo package on nuget.org

Installation

The platform information utility is published as a .NET Core Tool.

Nuget

This tool is listed on the NuGet Gallery with the package id THNETII.Utils.DotnetPlatformInfo

You can install the tool from nuget using the following command

dotnet tool install --global THNETII.Utils.DotnetPlatformInfo

Azure Artifacts

As an alternative to the NuGet Gallery, the tool can also be obtained from the TH-NETII Public Artifacts feed on Azure DevOps.

dotnet tool install --global --add-source "https://pkgs.dev.azure.com/thnetii/artifacts/_packaging/public/nuget/v3/index.json" THNETII.Utils.DotnetPlatformInfo

Nightlies

Whenever commits are pushed to the master or a release branch (rel/*) the CI/CD pipeline for this repository will publish the tool in the nightly feed.

The latest artifact can be installed by running the following command

dotnet tool install --global --add-source "https://pkgs.dev.azure.com/thnetii/ci-cd/_packaging/nightly/nuget/v3/index.json" THNETII.Utils.DotnetPlatformInfo

From source

To build and install the tool globally from source, run the following command at the root of the repository:

dotnet pack -c Release "./src/THNETII.Utils.DotnetPlatformInfo"
dotnet tool install --global --add-source "./bin/Release" THNETII.Utils.DotnetPlatformInfo

Usage

Run the following command to get the help information for the tool:

dotnet tool run dotnet-platforminfo -- --help

Subcommands

The tool offers several sub-commands that output different values of the static RuntimeEnvironment class located in the Microsoft.DotNet.PlatformAbstractions package.

The .NET CLI uses the same information to write the output of the dotnet --info command.

Command Description
rid Reports the runtime identifier (RID)<br/>The value matches exactly the output reported by<br/>dotnet --info.
os Reports the Operating System name as described by the .NET Runtime Environment<br/>For Linux, this outputs the name of the Distro.
osversion Reports the OS version
arch Reports the .NET process architecture string

Use-Cases

The rid subcommand can be used to obtain the RID of the current build agent during CI/CD pipelines. This can be useful for populating the Test Platform when executing Unit tests on a build agent. In .NET the RID is composed out of the output of all the other subcommands.

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 was computed.  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 was computed.  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.1 is compatible.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
1.0.0-preview3 414 7/21/2020
1.0.0-preview2 378 7/21/2020
1.0.0-preview1 330 7/21/2020