Skip to content

dotnet --info includes two RID values with .NET 8 #35237

@tmds

Description

@tmds

Previous versions of .NET list RID under Runtime Environment, and .NET 8 includes it also under Host.

.NET SDK:
 Version:   8.0.100-preview.7.23376.1
 Commit:    daebeea8ea

Runtime Environment:
 OS Name:     fedora
 OS Version:  37
 OS Platform: Linux
 RID:         fedora.37-x64
 Base Path:   /usr/lib64/dotnet/sdk/8.0.100-preview.7.23376.1/

.NET workloads installed:
There are no installed workloads to display.

Host:
  Version:      8.0.0-preview.7.23375.6
  Architecture: x64
  Commit:       65b696cf5e
  RID:          fedora.37-x64

.NET SDKs installed:
  7.0.110 [/usr/lib64/dotnet/sdk]
  8.0.100-preview.7.23376.1 [/usr/lib64/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 7.0.10 [/usr/lib64/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 8.0.0-preview.7.23375.9 [/usr/lib64/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 7.0.10 [/usr/lib64/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 8.0.0-preview.7.23375.6 [/usr/lib64/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
  None

Environment variables:
  DOTNET_ROOT       [/usr/lib64/dotnet]

global.json file:
  Not found

Learn more:
  https://aka.ms/dotnet/info

Download .NET:
  https://aka.ms/dotnet/download

Afaik, these RID values will be the same, so it can be confusing to list them twice.

This change can break scripts that try to extract the rid using dotnet --info | grep RID because they now get two lines instead of one.

cc @richlander @elinor-fung

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions