C# Class NugetForUnity.PackagesConfigFile

Represents a package.config file that holds the NuGet package dependencies for the project.
显示文件 Open project: GlitchEnzo/NuGetForUnity Class Usage Examples

Public Methods

Method Description
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.

Method Details

AddPackage() public method

Adds a package to the packages.config file.
public AddPackage ( NugetPackageIdentifier package ) : void
package NugetPackageIdentifier The NugetPackage to add to the packages.config file.
return void

Load() public static method

Loads a list of all currently installed packages by reading the packages.config file.
public static Load ( string filepath ) : PackagesConfigFile
filepath string
return PackagesConfigFile

RemovePackage() public method

Removes a package from the packages.config file.
public RemovePackage ( NugetPackageIdentifier package ) : void
package NugetPackageIdentifier The NugetPackage to remove from the packages.config file.
return void

Save() public method

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.
return void