Version: 2017.3 (switch to 2017.4)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Client.Add

public static PackageManager.Requests.AddRequest Add(string packageIdOrName);

Parameters

packageIdOrName The name or ID of the package to add. If only the name is specified, the latest version of the package is installed.

Returns

AddRequest An AddRequest instance, which you can use to monitor the asynchronous operation, and when complete, get the result.

Description

Adds a package dependency to the project.

Did you find this page useful? Please give it a rating: