Skip to content

Commit

Permalink
limit PSFramework and PSModuleDevelopment versions
Browse files Browse the repository at this point in the history
- PSFramework: 1.11.343
- PSModuleDevelopment: 2.2.11.168

see PowershellFrameworkCollective/psframework#645
  • Loading branch information
FH-Inway committed Oct 5, 2024
1 parent 0b90b71 commit f5afc27
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build/vsts-prerequisites.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ $modules = @("PSFramework", "PSScriptAnalyzer", "Az.Storage", "AzureAd", "PSNoti
Write-Host "Installing Pester, maximum version 4.99.99" -ForegroundColor Cyan
Install-Module "Pester" -MaximumVersion 4.99.99 -Force -Confirm:$false -Scope CurrentUser -AllowClobber -SkipPublisherCheck

# TODO: When issue #645 with PSFramework/PSModuleDevelopment is resolved, this can be removed again.
# https://github.com/PowershellFrameworkCollective/psframework/issues/645
Write-Host "Installing PSFramework, maximum version 1.11.343" -ForegroundColor Cyan
Install-Module "PSFramework" -MaximumVersion 1.11.343 -Force -Confirm:$false -Scope CurrentUser -AllowClobber -SkipPublisherCheck
Write-Host "Installing PSModuleDevelopment, maximum version 2.2.11.168" -ForegroundColor Cyan
Install-Module "PSModuleDevelopment" -MaximumVersion 2.2.11.168 -Force -Confirm:$false -Scope CurrentUser -AllowClobber -SkipPublisherCheck


foreach ($item in $modules) {

$module = Get-InstalledModule -Name $item -ErrorAction SilentlyContinue
Expand Down

0 comments on commit f5afc27

Please sign in to comment.