dotnet remove referencedotnet remove reference
Эта статья относится к следующему: ✔️ пакет SDK для .NET Core 2.x и более поздних версийThis article applies to: ✔️ .NET Core 2.x SDK and later versions
nameName
dotnet remove reference
— удаляет перекрестные ссылки между проектами (P2P).dotnet remove reference
- Removes project-to-project (P2P) references.
Краткий обзорSynopsis
dotnet remove [<PROJECT>] reference [-f|--framework <FRAMEWORK>]
<PROJECT_REFERENCES>
dotnet remove reference -h|--help
ОписаниеDescription
Команду dotnet remove reference
удобно использовать для удаления ссылок на проекты из проекта.The dotnet remove reference
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
Удаляемые перекрестные ссылки между проектами (P2P).Project-to-project (P2P) references to remove. Вы можете указать один или несколько проектов.You can specify one or multiple projects. Стандартные маски поддерживаются в терминалах на основе Unix или Linux.Glob patterns are supported on Unix/Linux based terminals.
ПараметрыOptions
-h|--help
Выводит краткую справку по команде.Prints out a short help for the command.
-f|--framework <FRAMEWORK>
Удаляет ссылку только при ориентации на конкретную платформу в формате TFM.Removes the reference only when targeting a specific framework using the TFM format.
Примеры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
Удаление нескольких ссылок на проект с помощью стандартной маски в Unix или Linux:Remove multiple project references using a glob pattern on Unix/Linux:
dotnet remove app/app.csproj reference **/*.csproj`