dotnet remove reference

dotnet remove reference --help

eg@debian:~$ dotnet remove reference --help
Description:
  Remove a project-to-project reference from the project.

Usage:
  dotnet remove [<PROJECT>] reference <PROJECT_PATH>... [options]

Arguments:
  <PROJECT>       The project file to operate on. If a file is not specified, the command will search the current directory for one. [default: /home/eg/]
  <PROJECT_PATH>  The paths to the referenced projects to remove.

Options:
  -f, --framework <FRAMEWORK>  Remove the reference only when targeting a specific framework.
  -?, -h, --help               Show command line help.

dotnet remove <target_project_file_path> reference <reference_project_file_path>

eg@debian:~$ dotnet remove ./Data/DotnetCliExamples/ExampleSolution/ExampleSolution.WebApi1/ExampleSolution.WebApi1.csproj reference ./Data/DotnetCliExamples/ExampleSolution/ExampleSolution.ClassLibrary1/ExampleSolution.ClassLibrary1.csproj 
Project reference `../ExampleSolution.ClassLibrary1/ExampleSolution.ClassLibrary1.csproj` removed.

Last updated