Is there a way to list all the build targets available in a build file?
Using MSBuild 2.0/3.5 : Custom Task You could write a custom msbuild task like this : using System; using System.Collections.Generic; using Microsoft.Build.BuildEngine; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; namespace MSBuildTasks { public class GetAllTargets : Task { [Required] public String ProjectFile { get; set; } [Output] public ITaskItem[] Targets { get; set; } public override bool Execute() … Read more