C# Class NugetForUnity.PackagesConfigFile

Represents a package.config file that holds the NuGet package dependencies for the project.
Afficher le fichier Open project: GlitchEnzo/NuGetForUnity Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

Load() public static méthode

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

RemovePackage() public méthode

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

Save() public méthode

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.
Résultat void