DotNetPackageAdder.

Add(string, string, DotNetPackageAddSettings) Method

Summary

Adds or updates a package reference in a project file.

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 DotNetPackageAddSettings The settings.

Return Value

Type Description
void