2023-10-18 03:25:15 +01:00
|
|
|
# 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}}`
|
|
|
|
|
2024-05-27 20:31:29 +01:00
|
|
|
- Add multiple references to the project in the current directory:
|
|
|
|
|
|
|
|
`dotnet add reference {{path/to/reference1.csproj path/to/reference2.csproj ...}}`
|
|
|
|
|
2023-10-18 03:25:15 +01:00
|
|
|
- Add a reference to the specific project:
|
|
|
|
|
|
|
|
`dotnet add {{path/to/project.csproj}} reference {{path/to/reference.csproj}}`
|
2024-05-27 20:31:29 +01:00
|
|
|
|
|
|
|
- Add multiple references to the specific project:
|
|
|
|
|
|
|
|
`dotnet add {{path/to/project.csproj}} reference {{path/to/reference1.csproj path/to/reference2.csproj ...}}`
|