public static void NuGetUpdate(this ICakeContext context, FilePath targetFile, NuGetUpdateSettings settings) { if (context == null) { throw new ArgumentNullException("context"); } var runner = new NuGetUpdater(context.FileSystem, context.Environment, context.ProcessRunner, context.Globber, context.GetToolResolver("NuGet")); runner.Update(targetFile, settings); }
public void Update() { var tool = new NuGetUpdater(FileSystem, Environment, ProcessRunner, NuGetToolResolver); tool.Update(TargetFile, Settings); }
protected override void RunTool() { var tool = new NuGetUpdater(FileSystem, Environment, ProcessRunner, Tools, Resolver); tool.Update(TargetFile, Settings); }