public static void MSBuild(this ICakeContext context, FilePath solution, MSBuildSettings settings) { if (context == null) { throw new ArgumentNullException("context"); } if (settings == null) { throw new ArgumentNullException("settings"); } var runner = new MSBuildRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Globber); runner.Run(solution, settings); }
public static void MSBuild(this ICakeContext context, FilePath solution, Action <MSBuildSettings> configurator) { if (context == null) { throw new ArgumentNullException("context"); } if (configurator == null) { throw new ArgumentNullException("configurator"); } var settings = new MSBuildSettings(solution); configurator(settings); var runner = new MSBuildRunner(context.FileSystem, context.Environment, context.ProcessRunner); runner.Run(settings); }