dotnet-reference-remove(1)
✨ dotnet-reference-remove — the manual page, but make it a group chat ✨
okay bestie, welcome to dotnet-reference-remove(1) from the .NET Documentation set 🎀 This one is a manual page, and yeah it applies to: ✔️ .NET 6 SDK and later versions. So if you're on .NET 6 or anything newer, you're in the right place, no cap 💅
💖 NAME 💖
dotnet-reference-remove — removes project-to-project (P2P) references. that's it, that's the whole job, and it does it beautifully 🦋
🚨 WAIT. READ THIS FIRST, FR FR. If you're using .NET 9 SDK or earlier, use the "verb first" form instead — that's dotnet-remove-reference. The "noun first" form only got introduced in .NET 10. For more information, see More consistent command order. Don't get caught out there bestie, iykyk 😭
🌸 SYNOPSIS 🌸
dotnet reference remove [-f|--framework <FRAMEWORK>] [--project <PROJECT>]
<PROJECT_REFERENCES>
dotnet reference remove -h|--help
🫶 DESCRIPTION 🫶
The dotnet reference remove command is literally the convenient option for removing project references from a project. that's the vibe. that's the whole assignment. main character energy for a command that just… deletes a reference off your project file 👑
🍓 ARGUMENTS 🍓
PROJECT— the target project file. if you don't specify one, the command goes looking around the current directory for one. she's self-sufficient like that 💅PROJECT_REFERENCES— the project-to-project (P2P) references you want gone. you can list one or multiple projects here, go off 👯 Glob patterns (https://en.wikipedia.org/wiki/Glob_(programming)) are supported on Unix/Linux based terminals ✨
💜 OPTIONS 💜
-?,-h,--help— prints out a description of how to use the command. the "help me bestie" button, iconic, we love her 🙈-f,--framework <FRAMEWORK>— removes the reference only when targeting a specific framework, and you write that framework using the TFM format 🎯
🌈 EXAMPLES 🌈
- remove a project reference from the specified project:
dotnet reference remove lib/lib.csproj --project app/app.csproj
- remove multiple project references from the project in the current directory:
dotnet reference remove lib1/lib1.csproj lib2/lib2.csproj
- remove multiple project references using a glob pattern on Unix/Linux:
dotnet reference remove **/*.csproj` --project app/app.csproj
💀 heads up: that last example has a stray backtick in the original page (`*/.csproj``) — i copied it exactly, character for character, because copying is the one thing i will not freestyle. so if it looks weird, it's not me, it's canon 🫶
and that's the whole page bestie, you ate it up ⭐ sign-off time: this was dotnet-reference-remove(1), dated 2025-10-30 💖 go forth and remove those references, periodt 🎀
📦 where this page comes from
- alpine 3.24: dotnet-doc 10.0.303-r2 · MIT
- centos-stream 10: dotnet-host 11.0.0~rc.2.26504.105-0.10.el10 · 0BSD AND Apache-2.0 AND (Apache-2.0 WITH LLVM-exception) AND APSL-2.0 AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND BSL-1.0 AND bzip2-1.0.6 AND CC0-1.0 AND CC-BY-3.0 AND CC-BY-4.0 AND CC-PDDC AND CNRI-Python AND EPL-1.0 AND GPL-2.0-only AND (GPL-2.0-only WITH GCC-exception-2.0) AND GPL-2.0-or-later AND GPL-3.0-only AND ICU AND ISC AND LGPL-2.1-only AND LGPL-2.1-or-later AND LicenseRef-Fedora-Public-Domain AND LicenseRef-ISO-8879 AND MIT AND MIT-Wu AND MS-PL AND MS-RL AND NCSA AND OFL-1.1 AND OpenSSL AND Unicode-DFS-2015 AND Unicode-DFS-2016 AND W3C-19980720 AND X11 AND Zlib
- centos-stream 9: dotnet-host 11.0.0~rc.2.26504.105-0.11.el9 · 0BSD AND Apache-2.0 AND (Apache-2.0 WITH LLVM-exception) AND APSL-2.0 AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND BSL-1.0 AND bzip2-1.0.6 AND CC0-1.0 AND CC-BY-3.0 AND CC-BY-4.0 AND CC-PDDC AND CNRI-Python AND EPL-1.0 AND GPL-2.0-only AND (GPL-2.0-only WITH GCC-exception-2.0) AND GPL-2.0-or-later AND GPL-3.0-only AND ICU AND ISC AND LGPL-2.1-only AND LGPL-2.1-or-later AND LicenseRef-Fedora-Public-Domain AND LicenseRef-ISO-8879 AND MIT AND MIT-Wu AND MS-PL AND MS-RL AND NCSA AND OFL-1.1 AND OpenSSL AND Unicode-DFS-2015 AND Unicode-DFS-2016 AND W3C-19980720 AND X11 AND Zlib
- fedora 43: dotnet-host 10.0.12-1.fc43
- fedora 43: dotnet-host 11.0.0~rc.1.26425.128-0.10.fc43 · 0BSD AND Apache-2.0 AND (Apache-2.0 WITH LLVM-exception) AND APSL-2.0 AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND BSL-1.0 AND bzip2-1.0.6 AND CC0-1.0 AND CC-BY-3.0 AND CC-BY-4.0 AND CC-PDDC AND CNRI-Python AND EPL-1.0 AND GPL-2.0-only AND (GPL-2.0-only WITH GCC-exception-2.0) AND GPL-2.0-or-later AND GPL-3.0-only AND ICU AND ISC AND LGPL-2.1-only AND LGPL-2.1-or-later AND LicenseRef-Fedora-Public-Domain AND LicenseRef-ISO-8879 AND MIT AND MIT-Wu AND MS-PL AND MS-RL AND NCSA AND OFL-1.1 AND OpenSSL AND Unicode-DFS-2015 AND Unicode-DFS-2016 AND W3C-19980720 AND X11 AND Zlib
- fedora 44: dotnet-host 10.0.12-1.fc44
- fedora 44: dotnet-host 10.0.4-1.fc44 · 0BSD AND Apache-2.0 AND (Apache-2.0 WITH LLVM-exception) AND APSL-2.0 AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND BSL-1.0 AND bzip2-1.0.6 AND CC0-1.0 AND CC-BY-3.0 AND CC-BY-4.0 AND CC-PDDC AND CNRI-Python AND EPL-1.0 AND GPL-2.0-only AND (GPL-2.0-only WITH GCC-exception-2.0) AND GPL-2.0-or-later AND GPL-3.0-only AND ICU AND ISC AND LGPL-2.1-only AND LGPL-2.1-or-later AND LicenseRef-Fedora-Public-Domain AND LicenseRef-ISO-8879 AND MIT AND MIT-Wu AND MS-PL AND MS-RL AND NCSA AND OFL-1.1 AND OpenSSL AND Unicode-DFS-2015 AND Unicode-DFS-2016 AND W3C-19980720 AND X11 AND Zlib
- fedora 44: dotnet-host 11.0.0~rc.1.26425.128-0.12.fc44 · 0BSD AND Apache-2.0 AND (Apache-2.0 WITH LLVM-exception) AND APSL-2.0 AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND BSL-1.0 AND bzip2-1.0.6 AND CC0-1.0 AND CC-BY-3.0 AND CC-BY-4.0 AND CC-PDDC AND CNRI-Python AND EPL-1.0 AND GPL-2.0-only AND (GPL-2.0-only WITH GCC-exception-2.0) AND GPL-2.0-or-later AND GPL-3.0-only AND ICU AND ISC AND LGPL-2.1-only AND LGPL-2.1-or-later AND LicenseRef-Fedora-Public-Domain AND LicenseRef-ISO-8879 AND MIT AND MIT-Wu AND MS-PL AND MS-RL AND NCSA AND OFL-1.1 AND OpenSSL AND Unicode-DFS-2015 AND Unicode-DFS-2016 AND W3C-19980720 AND X11 AND Zlib
- nixpkgs unstable: dotnet-vmr 11.0.0-rc.3
- ubuntu noble: dotnet-host-10.0 10.0.12-0ubuntu1~24.04.1
- ubuntu questing: dotnet-host-10.0 10.0.9-0ubuntu1~25.10.1
- ubuntu resolute: dotnet-host-10.0 10.0.12-0ubuntu1~26.04.1
- ubuntu resolute: dotnet-host-10.0 10.0.5-0ubuntu1 · MIT
- ubuntu stonking: dotnet-host-10.0 10.0.12-0ubuntu2 · MIT
- ubuntu stonking: dotnet-host-11.0 11.0.0~rc1-0ubuntu1 · MIT
- ubuntu stonking: dotnet-host-11.0 11.0.0~rc3-0ubuntu1~26.10.1 · MIT
- 💖 girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms