Skip to content

Add json support to --info output #3049

@steveharter

Description

@steveharter

During discussion of https://github.com/dotnet/core-setup/issues/3502 a feature to add json support to dotnet --info was discussed as a way for developers to easily obtain information by parsing json.

Information includes the SDK version, available SDK versions, and available runtimes. Being json, it would be extensible to other additional information in the future and thus serve as general API to return environmental information.

To enable the mode the proposal is an option on --info like this:
dotnet --info --format json
We could also add a default format as shown today:
dotnet --info --format text

Actual json syntax is TBD; marking this as future

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-HostenhancementProduct code improvement that does NOT require public API changes/additions

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions