msbuild: is there a way to list all the build targets available in a build file?

Posted by Cheeso on Stack Overflow See other posts from Stack Overflow or by Cheeso
Published on 2010-04-11T18:34:17Z Indexed on 2010/04/11 18:43 UTC
Read the original article Hit count: 196

Filed under:

Just what the title says.

Given a build file (.csproj or msbuild.xml or whatever), I'd like to run a msbuild command that lists all the available, defined targets.

Does that function exist?

I know I could do an Xpath search or something, on the build file, but that wouldn't get included files.

© Stack Overflow or respective owner

Related posts about msbuild