Add many targets to the build settings
var settings = new DotNetBuildSettings() .WithTargets(new[] { "Clean", "Build", "Publish" });