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); }
protected override void RunTool() { var tool = new DotNetCorePacker(FileSystem, Environment, ProcessRunner, Tools); tool.Pack(Project, Settings); }