dotnet-add-reference
Add .NET project-to-project references. tldr-pages
On several platforms
Several platforms
Add a reference to the project in the current directory
dotnet add reference path/to/reference.csprojIdentifyAdd multiple references to the project in the current directory
dotnet add reference path/to/reference1.csproj path/to/reference2.csproj ...IdentifyAdd a reference to the specific project
dotnet add path/to/project.csproj reference path/to/reference.csprojIdentifyAdd multiple references to the specific project
dotnet add path/to/project.csproj reference path/to/reference1.csproj path/to/reference2.csproj ...Identify