Skip to content

Instantly share code, notes, and snippets.

@zeqk
Last active April 13, 2018 16:04
Show Gist options
  • Save zeqk/fca5f19755cf989942451c1bf38d4c4b to your computer and use it in GitHub Desktop.
Save zeqk/fca5f19755cf989942451c1bf38d4c4b to your computer and use it in GitHub Desktop.
param([string]$installationType = "NONE")
Set-Content -Path "modules.txt" -Value "" -Force;
Get-Content "a1f.webapi.$($installationType.ToLower()).sln" |
Select-String 'Project\(' |
ForEach-Object {
$projectParts = $_ -Split '[,=]' | ForEach-Object { $_.Trim('[ "{}]') };
If($projectParts[1].startswith("a1f.")) {
Add-Content -Path "modules.txt" -Value $projectParts[1] -Force;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment