title | description | ms.date |
---|---|---|
dotnet remove package command |
The dotnet remove package command provides a convenient option to remove NuGet package reference to a project. |
02/14/2020 |
This article applies to: ✔️ .NET Core 3.1 SDK and later versions
dotnet remove package
- Removes package reference from a project file.
dotnet remove [<PROJECT>] package <PACKAGE_NAME>
dotnet remove package -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 searches the current directory for one.
PACKAGE_NAME
The package reference to remove.
[!INCLUDE help]
-
Remove
Newtonsoft.Json
NuGet package from a project in the current directory:dotnet remove package Newtonsoft.Json