public static Response Restore(NuGetRestoreRequest request)
        {
            var console = new Console();
            var command = new RestoreCommand
            {
                Console          = console,
                CurrentDirectory = request.BaseDirectory,
                Verbosity        = Verbosity.Detailed,
            };

            command.Arguments.Add(request.SolutionPath);

            try
            {
                command.Execute();
            }
            catch (Exception e)
            {
                console.WriteError(e.ToString());
            }

            return(new Response(console.Messages));
        }
        public static Response Restore(NuGetRestoreRequest request)
        {
            var console = new Console();
            PackageBuilder builder = new PackageBuilder();
            var command = new RestoreCommand
            {
                FileSystem = new PhysicalFileSystem(PathTools.OptimizePath(request.BaseDirectory)),
                Console = console,
                Verbosity = Verbosity.Detailed,
            };
            command.Arguments.Add(request.SolutionPath);

            try
            {
                command.Execute();
            }
            catch (Exception e)
            {
                console.WriteError(e);
            }

            return new Response(console.Messages);
        }