Recursively traversing a Visual Studio Solution using PowerShell

寵の児 提交于 2019-12-04 15:01:42

Since you're already loading the dte, Check out http://studioshell.codeplex.com/

The feature that helps you the most:

  • Manage your projects, references, breakpoints, stack frame locals, menus, toolbars, Visual Studio settings, IDE windows, and even your code from PowerShell scripts, all in a consistent and discoverable way.

Here is how you can get all loaded projects with StudioShell

$projects = ls -path "DTE:\solution\Projects" -recurse
  | where {$_.FileName -match ".csproj"}

Note that it may take up to 15 minutes for big solutions.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!