How do I programmatically list all projects in a solution?

前端 未结 12 1442
感动是毒
感动是毒 2020-11-29 04:06

How do I programmatically list all of the projects in a solution? I\'ll take a script, command-line, or API calls.

12条回答
  •  Happy的楠姐
    2020-11-29 04:32

    There's a really elegant solution here: Parsing Visual Studio Solution files

    The answer by John Leidegren involves wrapping the internal Microsoft.Build.Construction.SolutionParser class.

提交回复
热议问题