public static void DotNetCoreRestore(this ICakeContext context, string root, DotNetCoreRestoreSettings settings) { if (context == null) { throw new ArgumentNullException("context"); } if (settings == null) { settings = new DotNetCoreRestoreSettings(); } var restorer = new DotNetCoreRestorer(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools); restorer.Restore(root, settings); }
protected override void RunTool() { var tool = new DotNetCoreRestorer(FileSystem, Environment, ProcessRunner, Globber); tool.Restore(Root, Settings); }