We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 04b0a35 + 757e7cd commit 4d52f6fCopy full SHA for 4d52f6f
templates/PSFProject/build/vsts-prerequisites.ps1
@@ -1,6 +1,7 @@
1
-Write-Host "Installing Pester" -ForegroundColor Cyan
2
-Install-Module Pester -Force -SkipPublisherCheck
3
-Write-Host "Installing PSFramework" -ForegroundColor Cyan
4
-Install-Module PSFramework -Force -SkipPublisherCheck
5
-Write-Host "Installing PSScriptAnalyzer" -ForegroundColor Cyan
6
-Install-Module PSScriptAnalyzer -Force -SkipPublisherCheck
+$modules = @("Pester", "PSFramework", "PSScriptAnalyzer")
+
+foreach ($module in $modules) {
+ Write-Host "Installing $module" -ForegroundColor Cyan
+ Install-Module $module -Force -SkipPublisherCheck
+ Import-Module $module -Force -PassThru
7
+}
0 commit comments