1(1)                                  .NET                                  (1)
2
3
4

dotnet remove reference

6       This article applies to: ✔️ .NET Core 2.x SDK and later versions
7

NAME

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

SYNOPSIS

12              dotnet remove [<PROJECT>] reference [-f|--framework <FRAMEWORK>]
13                   <PROJECT_REFERENCES>
14
15              dotnet remove reference -h|--help
16

DESCRIPTION

18       The dotnet remove reference command provides a convenient option to re‐
19       move project references from a project.
20
21   Arguments
22       PROJECT
23
24       Target project file.  If not specified, the command searches  the  cur‐
25       rent directory for one.
26
27       PROJECT_REFERENCES
28
29       Project-to-project  (P2P) references to remove.  You can specify one or
30       multiple   projects.    Glob   patterns   (https://en.wikipedia.org/wi
31       ki/Glob_(programming)) are supported on Unix/Linux based terminals.
32

OPTIONS

34-?|-h|--help
35
36         Prints out a description of how to use the command.
37
38-f|--framework <FRAMEWORK>
39
40         Removes  the reference only when targeting a specific framework using
41         the TFM format.
42

EXAMPLES

44       • Remove a project reference from the specified project:
45
46                dotnet remove app/app.csproj reference lib/lib.csproj
47
48       • Remove multiple project references from the project  in  the  current
49         directory:
50
51                dotnet remove reference lib1/lib1.csproj lib2/lib2.csproj
52
53       • Remove  multiple project references using a glob pattern on Unix/Lin‐
54         ux:
55
56                dotnet remove app/app.csproj reference **/*.csproj`
57
58
59
60                                                                           (1)
Impressum