LinuxCommandLibrary

dotnet-add-reference

Add .NET project-to-project references.

TLDR

Add a reference to the project in the current directory

$ dotnet add reference [path/to/reference.csproj]
copy


Add a reference to the specific project
$ dotnet add [path/to/project.csproj] reference [path/to/reference.csproj]
copy

Copied to clipboard