Last active
April 13, 2018 16:04
-
-
Save zeqk/fca5f19755cf989942451c1bf38d4c4b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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