Skip to content

CLI Solution Sync Command #28781

@cpendery

Description

@cpendery

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

We are trying to update a solution file for a given path such that every ProjectReference inside the .csproj file in that folder is recursively iterated and added to the solution.

Describe the solution you'd like

We'd like to run a dotnet cli command that will perform this action.

Description:
  .NET modify solution file command that recursively traverses the C# project dependency tree in the directory
  where the solution file is located to update the solution file to contain all projects in the dependency tree

Usage:
  dotnet sln sync <SLN_FILE> <CSPROJ_FILE> [options]

Arguments:
  <SLN_FILE>  The solution file to operate on. If not specified, the command will search the current directory for one.
  <CSPROJ_FILE>  The csproj file to start operating on. If not specified, the command will search the directory of the SLN_FILE for one.

Options:
  -?, -h, --help  Show command line help.

Additional context

Happy to contribute support for this

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions