Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        public void Update()
        {
            var tool = new NuGetUpdater(FileSystem, Environment, ProcessRunner, NuGetToolResolver);

            tool.Update(TargetFile, Settings);
        }
Esempio n. 3
0
        protected override void RunTool()
        {
            var tool = new NuGetUpdater(FileSystem, Environment, ProcessRunner, Tools, Resolver);

            tool.Update(TargetFile, Settings);
        }