Exemplo 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();
        }
Exemplo 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();
        }
Exemplo 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();
 }
Exemplo 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();
 }