dotnet-reference-remove - Man Page

dotnet reference remove

This article applies to: ✔️ .NET Core 3.1 SDK and later versions

Name

dotnet-reference-remove — Removes project-to-project (P2P) references.

If you’re using .NET 9 SDK or earlier, use the “verb first” form (dotnet-remove-reference) instead. The “noun first” form was introduced in .NET 10. For more information, see More consistent command order.

Synopsis

dotnet reference remove [-f|--framework <FRAMEWORK>] [--project <PROJECT>]
     <PROJECT_REFERENCES>

dotnet reference remove -h|--help

Description

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

Arguments

PROJECT

Target project file. If not specified, the command searches the current directory for one.

PROJECT_REFERENCES

Project-to-project (P2P) references to remove. You can specify one or multiple projects. Glob patterns (https://en.wikipedia.org/wiki/Glob_(programming)) are supported on Unix/Linux based terminals.

Options

Examples

Info

2025-08-29 .NET Documentation