public static void DotNetCoreMSBuild(this ICakeContext context, string projectOrDirectory, DotNetCoreMSBuildSettings settings) { if (context == null) { throw new ArgumentNullException(nameof(context)); } if (settings == null) { settings = new DotNetCoreMSBuildSettings(); } var builder = new DotNetCoreMSBuildBuilder(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools); builder.Build(projectOrDirectory, settings); }
protected override void RunTool() { var tool = new DotNetCoreMSBuildBuilder(FileSystem, Environment, ProcessRunner, Tools); tool.Build(Project, Settings); }