Exemplo n.º 1
0
        public static void NuGetRestore(this ICakeContext context, FilePath targetFilePath, NuGetRestoreSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }

            var runner = new NuGetRestorer(context.FileSystem, context.Environment, context.ProcessRunner, context.Globber, context.GetToolResolver("NuGet"));

            runner.Restore(targetFilePath, settings);
        }
Exemplo n.º 2
0
        public void Restore()
        {
            var tool = new NuGetRestorer(FileSystem, Environment, ProcessRunner, Globber, NuGetToolResolver);

            tool.Restore(TargetFilePath, Settings);
        }
        protected override void RunTool()
        {
            var tool = new NuGetRestorer(FileSystem, Environment, ProcessRunner, Tools, Resolver);

            tool.Restore(TargetFilePath, Settings);
        }