dotnet remove package

This topic applies to: ✓ .NET Core 1.x .NET Core 2.x

Name

dotnet remove package - Removes package reference from a project file.

Synopsis

dotnet remove [<PROJECT>] package <PACKAGE_NAME> [-h|--help]

Description

The dotnet remove package command provides a convenient option to remove a NuGet package reference from a project.

Arguments

PROJECT

Specifies the project file. If not specified, the command will search the current directory for one.

PACKAGE_NAME

The package reference to remove.

Options

-h|--help

Prints out a short help for the command.

Examples

Removes Newtonsoft.Json NuGet package from a project in the current directory:

dotnet remove package Newtonsoft.Json