How do I programmatically list all projects in a solution?

前端 未结 12 1461
感动是毒
感动是毒 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-29 04:33

    If you need to do this on a non Windows machine, you can use the following Bash command:

    grep "Project(" NameOfYourSolution.sln | cut -d'"' -f4

提交回复
热议问题