/// <summary> /// Invokes MSBuild.exe with Clean target and normal verbosity /// </summary> /// <param name="project">Project/solution file</param> /// <param name="configuration">Default is "Release"</param> public static void MsBuildClean(this string project, string configuration = "Release") { var builder = new MsBuild(project, new NameValueCollection() { { "Configuration", configuration } }); builder.Clean(); }
/// <summary> /// Invokes MSBuild.exe with Build target, Release configuration and no verbosity /// </summary> /// <param name="project">Project/solution file</param> public static void MsBuildRelease(this string project) { var builder = new MsBuild(project, MsBuild.ConfigurationRelease); builder.Build(); }