Summary
Adds or updates a package reference in a project file.
- Namespace
- Cake
.Common .Tools .DotNet .Package .Add - Containing Type
- DotNetPackageAdder
Syntax
public void Add(string packageName, string project, DotNetPackageAddSettings settings)
Parameters
| Name | Type | Description |
|---|---|---|
| packageName | string | The package reference to add. |
| project | string | The target project file path. If not specified, the command searches the current directory for one. |
| settings | Dot |
The settings. |
Return Value
| Type | Description |
|---|---|
| void |
