| title | dotnet remove package command - .NET Core CLI | |
|---|---|---|
| description | The dotnet remove package command provides a convenient option to remove NuGet package reference to a project. | |
| author | mairaw | |
| ms.author | mairaw | |
| ms.date | 08/14/2017 | |
| ms.topic | article | |
| ms.prod | .net-core | |
| ms.technology | dotnet-cli | |
| ms.workload |
|
[!INCLUDE topic-appliesto-net-core-all]
dotnet remove package - Removes package reference from a project file.
dotnet remove [<PROJECT>] package <PACKAGE_NAME> [-h|--help]
The dotnet remove package command provides a convenient option to remove a NuGet package reference from a project.
PROJECT
Specifies the project file. If not specified, the command will search the current directory for one.
PACKAGE_NAME
The package reference to remove.
-h|--help
Prints out a short help for the command.
Removes Newtonsoft.Json NuGet package from a project in the current directory:
dotnet remove package Newtonsoft.Json