C# Класс NugetForUnity.PackagesConfigFile

Represents a package.config file that holds the NuGet package dependencies for the project.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AddPackage ( NugetPackageIdentifier package ) : void

Adds a package to the packages.config file.

Load ( string filepath ) : PackagesConfigFile

Loads a list of all currently installed packages by reading the packages.config file.

RemovePackage ( NugetPackageIdentifier package ) : void

Removes a package from the packages.config file.

Save ( string filepath ) : void

Saves the packages.config file and populates it with given installed NugetPackages.

Описание методов

AddPackage() публичный Метод

Adds a package to the packages.config file.
public AddPackage ( NugetPackageIdentifier package ) : void
package NugetPackageIdentifier The NugetPackage to add to the packages.config file.
Результат void

Load() публичный статический Метод

Loads a list of all currently installed packages by reading the packages.config file.
public static Load ( string filepath ) : PackagesConfigFile
filepath string
Результат PackagesConfigFile

RemovePackage() публичный Метод

Removes a package from the packages.config file.
public RemovePackage ( NugetPackageIdentifier package ) : void
package NugetPackageIdentifier The NugetPackage to remove from the packages.config file.
Результат void

Save() публичный Метод

Saves the packages.config file and populates it with given installed NugetPackages.
public Save ( string filepath ) : void
filepath string The filepath to where this packages.config will be saved.
Результат void