dotnet-remove-reference(1)

πŸ“¦
version 9.0.17 Β· 4 versions
, in fedora 43, ubuntu questing

✨ 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 πŸ’…

  1. remove a project reference from the specified project:
dotnet remove app/app.csproj reference lib/lib.csproj
  1. remove multiple project references from the project in the current directory:
dotnet remove reference lib1/lib1.csproj lib2/lib2.csproj
  1. 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