Beispiel #1
0
        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);
        }
Beispiel #2
0
        protected override void RunTool()
        {
            var tool = new DotNetCoreRestorer(FileSystem, Environment, ProcessRunner, Globber);

            tool.Restore(Root, Settings);
        }