dotnet-remove-reference(1)
β¨ dotnet-remove-reference β¨
okay bestie, welcome to dotnet-remove-reference(1) β yes that's the whole manual name, yes it's a mouthful, and yes I'm gonna walk you through it like we're texting at 1am π«Ά
This article applies to: βοΈ .NET Core 3.1 SDK and later versions
πΈ NAME πΈ
dotnet-remove-reference β removes project-to-project (P2P) references. that's it. that's the job. she's a deleter, not a builder π
π SYNOPSIS π
dotnet remove [<PROJECT>] reference [-f|--framework <FRAMEWORK>]
<PROJECT_REFERENCES>
dotnet remove reference -h|--help
π¦ DESCRIPTION π¦
so the dotnet remove reference command is literally the convenient little shortcut for taking project references out of a project. no cap, it's just the β¨ convenient option β¨ to remove project references from a project. nothing more, nothing less, and she does it beautifully π
π ARGUMENTS π
PROJECTβ the target project file, bestie. and here's the chill part: if you don't specify one, the command goes looking for one in the current directory all by itself. independent queen π₯PROJECT_REFERENCESβ the project-to-project (P2P) references you want GONE. you can list one of them, or multiple, go off π and plot twist: glob patterns (https://en.wikipedia.org/wiki/Glob_(programming)) are supported on Unix/Linux based terminals. so you can be lazy and it still works. iconic.
β¨ OPTIONS β¨
-?|-h|--helpβ prints out a description of how to use the command. your little "help me" button, no judgement π-f|--framework <FRAMEWORK>β removes the reference only when targeting a specific framework, using the TFM format. like, only that framework's reference gets touched. very targeted, very demure π
π EXAMPLES π
- remove a project reference from the specified project:
dotnet remove app/app.csproj reference lib/lib.csproj
- remove multiple project references from the project in the current directory:
dotnet remove reference lib1/lib1.csproj lib2/lib2.csproj
- remove multiple project references using a glob pattern on Unix/Linux:
dotnet remove app/app.csproj reference **/*.csproj`
ngl that last one has a stray trailing backtick sitting there in the original. it's giving typo energy π but I'm keeping it exactly as written because I do not touch the facts, ever. periodt.
π SEE ALSO π
(no extra references in the original, bestie β this section is just vibing quietly π)
okay that's the whole page, you ate it, go remove some references π¦π
β sourced from .NET Documentation, page dated 2024-10-02, filed under dotnet-remove-reference(1). main character manual energy, fr fr πβ¨
π¦ where this page comes from
- fedora 43: dotnet-host 9.0.8-1.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
- ubuntu questing: dotnet-host-9.0 9.0.17-0ubuntu1~25.10.1
- ubuntu questing: dotnet-host-9.0 9.0.9-0ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms