snippetbashTip
dotnet add reference — Add .NET project-to-project references. More information: <https://learn.microsoft.com/dotnet/core/t
Viewed 0 times
commandnetcliaddreferencesdotnet add referenceproject
Problem
How to use the
dotnet add reference command: Add .NET project-to-project references. More information: <https://learn.microsoft.com/dotnet/core/tools/dotnet-add-reference>.Solution
dotnet add reference — Add .NET project-to-project references. More information: <https://learn.microsoft.com/dotnet/core/tools/dotnet-add-reference>.Add a reference to the project in the current directory:
dotnet add reference {{path/to/reference.csproj}}Add multiple references to the project in the current directory:
dotnet add reference {{path/to/reference1.csproj path/to/reference2.csproj ...}}Add a reference to the specific project:
dotnet add {{path/to/project.csproj}} reference {{path/to/reference.csproj}}Add multiple references to the specific project:
dotnet add {{path/to/project.csproj}} reference {{path/to/reference1.csproj path/to/reference2.csproj ...}}Code Snippets
Add a reference to the project in the current directory
dotnet add reference {{path/to/reference.csproj}}Add multiple references to the project in the current directory
dotnet add reference {{path/to/reference1.csproj path/to/reference2.csproj ...}}Add a reference to the specific project
dotnet add {{path/to/project.csproj}} reference {{path/to/reference.csproj}}Add multiple references to the specific project
dotnet add {{path/to/project.csproj}} reference {{path/to/reference1.csproj path/to/reference2.csproj ...}}Context
tldr-pages: common/dotnet add reference
Revisions (0)
No revisions yet.