Skip to content

Instantly share code, notes, and snippets.

@trayburn
Created September 14, 2015 21:26
Show Gist options
  • Save trayburn/2a8a1d87db9c42bbbaee to your computer and use it in GitHub Desktop.
Save trayburn/2a8a1d87db9c42bbbaee to your computer and use it in GitHub Desktop.
$excludes = @("node_modules", "packages", ".git", ".vs")
function Get-SolutionFiles() {
(
@(Get-ChildItem *.sln) +
@(Get-ChildItem -Directory | ? { $excludes -notcontains $_.Name } | % { Get-ChildItem $_ -Recurse -Filter *.sln })
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment