예제 #1
0
        public static void DotNetCorePack(this ICakeContext context, string project, DotNetCorePackSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }

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

            var packer = new DotNetCorePacker(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools);
            packer.Pack(project, settings);
        }
예제 #2
0
        protected override void RunTool()
        {
            var tool = new DotNetCorePacker(FileSystem, Environment, ProcessRunner, Tools);

            tool.Pack(Project, Settings);
        }