Skip to content

Commit 0ed1c8b

Browse files
bergmeisterJamesWTruher
authored andcommitted
Use latest version of PlatyPS in AppVeyor (#1390)
1 parent 5d529a3 commit 0ed1c8b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Note: the PSScriptAnalyzer Chocolatey package is provided and supported by the c
106106
#### Requirements
107107

108108
* [.NET Core 3.1.100 SDK](https://www.microsoft.com/net/download/dotnet-core/3.1#sdk-3.1.100) or newer patch release
109-
* [PlatyPS 0.13.0 or greater](https://github.com/PowerShell/platyPS/releases)
109+
* [PlatyPS PowerShell module, available on PowerShell Gallery](https://github.com/PowerShell/platyPS/releases)
110110
* Optionally but recommended for development: [Visual Studio 2017/2019](https://www.visualstudio.com/downloads/)
111111

112112
#### Steps

tools/appveyor.psm1

+2-3
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,14 @@ function Invoke-AppVeyorInstall {
2020
}
2121
}
2222

23-
$platyPSVersion = '0.13.0'
2423
if ($null -eq (Get-Module -ListAvailable PowershellGet)) {
2524
# WMF 4 image build
2625
Write-Verbose -Verbose "Installing platyPS via nuget"
27-
nuget install platyPS -Version $platyPSVersion -source https://www.powershellgallery.com/api/v2 -outputDirectory "$Env:ProgramFiles\WindowsPowerShell\Modules\." -ExcludeVersion
26+
nuget install platyPS -source https://www.powershellgallery.com/api/v2 -outputDirectory "$Env:ProgramFiles\WindowsPowerShell\Modules\." -ExcludeVersion
2827
}
2928
else {
3029
Write-Verbose -Verbose "Installing platyPS via Install-Module"
31-
Install-Module -Name platyPS -Force -Scope CurrentUser -RequiredVersion $platyPSVersion -Repository PSGallery
30+
Install-Module -Name platyPS -Force -Scope CurrentUser -Repository PSGallery
3231
}
3332

3433
# Do not use 'build.ps1 -bootstrap' option for bootstraping the .Net SDK as it does not work well in CI with the AppVeyor Ubuntu image

0 commit comments

Comments
 (0)