The DotNet Add action can be used to add a reference or package to a .Net project or a project to a .Net solution file.
DotNet Add
Name
A friendly name for this action (will be displayed in the actions workflow area).
...
The name of the package reference to add.
Package Version
The version of the package to add.
Skip restore preview and compatibility check
Tick to add the package without performing a restore preview and compatibility check.
Package Source
The NuGet package source to use during the restore operation.
Package Directory
A directory to restore the package to.
Reference to project
This option uses the "dotnet add reference" command line to add project references to a project file. The command adds one or more <ProjectReference> elements to the project file.
...
Alternatively, you can select the Custom option from the Using drop down list and specify a path in the resulting input field that will be displayed. Please read Why it's a good idea to use a property collector before using this option.
Settings
Package Version
The version of the package to add.
Skip restore preview and compatibility check
Tick to add the package without performing a restore preview and compatibility check.
Package Source
The NuGet package source to use during the restore operation.
Package Directory
A directory to restore the package to.
Additional Arguments
Options
Log standard output
...
If this is ticked, any warnings logged will not mark the action with a warning status.
Environment
Environment Variables
...