Class ManagerRestorer
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
ManagerRestorer
Namespace: BuildSystem.ProjectList.Common
Assembly: BuildSystem.ProjectList.dll
Syntax
public class ManagerRestorer : Object
Constructors
ManagerRestorer(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 ManagerRestorer(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 |