Class PackagesRestorer
Object to run group restoring. It combines packages dependencies so same dependencies with same restore settings should be restored only once. Moreover, restore command should be executed only once per each group
Inheritance
object
PackagesRestorer
Namespace: BuildSystem.ProjectList.Helpers
Assembly: BuildSystem.ProjectList.dll
Syntax
public class PackagesRestorer : Object
Constructors
PackagesRestorer(ILogger?)
Object to run group restoring. It combines packages dependencies so same dependencies with same restore settings should be restored only once. Moreover, restore command should be executed only once per each group
Declaration
public PackagesRestorer(ILogger? logger)
Parameters
Type | Name | Description |
---|---|---|
ILogger | logger | Logging object |
Methods
AddDependency(IRestorer, PackageDependency)
Add new dependency and its restorer name
Declaration
public void AddDependency(IRestorer restorer, PackageDependency dependency)
Parameters
Type | Name | Description |
---|---|---|
IRestorer | restorer | Instance of restorer object |
PackageDependency | dependency | Dependency to add |
RestoreAll(string, string)
Run restoring for all dependencies
Declaration
public void RestoreAll(string configuration, string platform)
Parameters
Type | Name | Description |
---|---|---|
string | configuration | |
string | platform |