/// <summary> /// Builds the solution without "CodeCakeBuilder" project itself and /// optionally other projects. /// </summary> /// <param name="excludedProjectName">Optional project names (without path nor .csproj extension).</param> public void Build(params string[] excludedProjectsName) { using (ITemporarySolutionFile tempSln = _globalInfo.Cake.CreateTemporarySolutionFile(SolutionFileName)) { List <string> exclude = new List <string>(excludedProjectsName) { "CodeCakeBuilder" }; tempSln.ExcludeProjectsFromBuild(exclude.ToArray()); _globalInfo.Cake.DotNetCoreBuild(tempSln.FullPath.FullPath); } }
/// <summary> /// Builds the solution without "CodeCakeBuilder" project itself and /// optionally other projects. /// </summary> /// <param name="excludedProjectName">Optional project names (without path nor .csproj extension).</param> public void Build(params string[] excludedProjectsName) { using (ITemporarySolutionFile tempSln = _globalInfo.Cake.CreateTemporarySolutionFile(SolutionFileName)) { List <string> exclude = new List <string>(excludedProjectsName) { "CodeCakeBuilder" }; tempSln.ExcludeProjectsFromBuild(exclude.ToArray()); _globalInfo.Cake.DotNetCoreBuild(tempSln.FullPath.FullPath, new DotNetCoreBuildSettings().AddVersionArguments(_globalInfo.GitInfo, s => { s.Configuration = _globalInfo.BuildConfiguration; })); } }