dotnet remove package

dotnet remove package --help

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

Usage:
  dotnet remove [<PROJECT>] package <PACKAGE_NAME>... [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/]
  <PACKAGE_NAME>  The package reference to remove.

Options:
  --interactive   Allows the command to stop and wait for user input or action (for example to complete authentication).
  -?, -h, --help  Show command line help.

dotnet remove <project_file_path> package <nuget_package_name>

eg@debian:~$ dotnet remove ./Data/DotnetCliExamples/ExampleSolution/ExampleSolution.WebApi1/ExampleSolution.WebApi1.csproj package Microsoft.EntityFrameworkCore
info : Removing PackageReference for package 'Microsoft.EntityFrameworkCore' from project './Data/DotnetCliExamples/ExampleSolution/ExampleSolution.WebApi1/ExampleSolution.WebApi1.csproj'.

Last updated