From b12f6bbb637688ce018404bbab643edb9af54eab Mon Sep 17 00:00:00 2001 From: Christoph Bergmeister Date: Fri, 3 Jan 2020 22:15:55 +0000 Subject: [PATCH] Use latest version of PlatyPS in AppVeyor --- README.md | 2 +- tools/appveyor.psm1 | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4d5bc87df..59c0fcbae 100644 --- a/README.md +++ b/README.md @@ -106,7 +106,7 @@ Note: the PSScriptAnalyzer Chocolatey package is provided and supported by the c #### Requirements * [.NET Core 3.1.100 SDK](https://www.microsoft.com/net/download/dotnet-core/3.1#sdk-3.1.100) or newer patch release -* [PlatyPS 0.13.0 or greater](https://github.com/PowerShell/platyPS/releases) +* [PlatyPS PowerShell module, available on PowerShell Gallery](https://github.com/PowerShell/platyPS/releases) * Optionally but recommended for development: [Visual Studio 2017/2019](https://www.visualstudio.com/downloads/) #### Steps diff --git a/tools/appveyor.psm1 b/tools/appveyor.psm1 index 6323ae953..01cbeceb4 100644 --- a/tools/appveyor.psm1 +++ b/tools/appveyor.psm1 @@ -20,15 +20,14 @@ function Invoke-AppVeyorInstall { } } - $platyPSVersion = '0.13.0' if ($null -eq (Get-Module -ListAvailable PowershellGet)) { # WMF 4 image build Write-Verbose -Verbose "Installing platyPS via nuget" - nuget install platyPS -Version $platyPSVersion -source https://www.powershellgallery.com/api/v2 -outputDirectory "$Env:ProgramFiles\WindowsPowerShell\Modules\." -ExcludeVersion + nuget install platyPS -source https://www.powershellgallery.com/api/v2 -outputDirectory "$Env:ProgramFiles\WindowsPowerShell\Modules\." -ExcludeVersion } else { Write-Verbose -Verbose "Installing platyPS via Install-Module" - Install-Module -Name platyPS -Force -Scope CurrentUser -RequiredVersion $platyPSVersion -Repository PSGallery + Install-Module -Name platyPS -Force -Scope CurrentUser -Repository PSGallery } # 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