Skip to content

Implement bare output for dotnet sln list #26303

@george-polevoy

Description

@george-polevoy

Is your feature request related to a problem? Please describe.

dotnet sln list command output can't be used directly as a text file for automation because of the header.

dotnet sln source.sln list | xargs dotnet sln destination.sln add

It won't work, because of the very useful header:

Project(s)
----------

One possible workaround for command line would be:

dotnet sln source.sln list | tail -3

Describe the solution you'd like

Drop the header from the output.
If solution is empty, don't output anything. Return exactly one line per project.
Alternatively, provide a machine friendly format option, such as --format json

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions