Esempio n. 1
0
        /// <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();
        }
Esempio n. 2
0
        /// <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();
        }
Esempio n. 3
0
 /// <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();
 }
Esempio n. 4
0
 /// <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();
 }