Ejemplo n.º 1
0
        public static void DotNetCorePublish(this ICakeContext context, string project, DotNetCorePublishSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }

            if (settings == null)
            {
                settings = new DotNetCorePublishSettings();
            }

            var publisher = new DotNetCorePublisher(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools);
            publisher.Publish(project, settings);
        }
        protected override void RunTool()
        {
            var tool = new DotNetCorePublisher(FileSystem, Environment, ProcessRunner, Tools);

            tool.Publish(Project, Settings);
        }