.\" Automatically generated by Pandoc 2.1.3 .\" .TH "dotnet\-add reference command \- .NET Core CLI" "1" "" "" ".NET Core" .hy .SH dotnet\-add reference .PP .SH NAME .PP \f[C]dotnet\ add\ reference\f[] \- Adds project\-to\-project (P2P) references. .SH SYNOPSIS .PP \f[C]dotnet\ add\ []\ reference\ [\-f|\-\-framework]\ \ [\-h|\-\-help]\f[] .SH DESCRIPTION .PP The \f[C]dotnet\ add\ reference\f[] command provides a convenient option to add project references to a project. After running the command, the \f[C]\f[] elements are added to the project file. .IP .nf \f[C] \ \ \ \ \ \ \f[] .fi .SS Arguments .PP \f[C]PROJECT\f[] .PP Specifies the project file. If not specified, the command searches the current directory for one. .PP \f[C]PROJECT_REFERENCES\f[] .PP Project\-to\-project (P2P) references to add. Specify one or more projects. Glob patterns are supported on Unix/Linux\-based systems. .SH OPTIONS .PP \f[C]\-h|\-\-help\f[] .PP Prints out a short help for the command. .PP \f[C]\-f|\-\-framework\ \f[] .PP Adds project references only when targeting a specific framework. .SH EXAMPLES .PP Add a project reference: .PP \f[C]dotnet\ add\ app/app.csproj\ reference\ lib/lib.csproj\f[] .PP Add multiple project references to the project in the current directory: .PP \f[C]dotnet\ add\ reference\ lib1/lib1.csproj\ lib2/lib2.csproj\f[] .PP Add multiple project references using a globbing pattern on Linux/Unix: .PP \f[C]dotnet\ add\ app/app.csproj\ reference\ **/*.csproj\f[] .SH AUTHORS mairaw.