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.
1 parent ff83454 commit 1ccd1dbCopy full SHA for 1ccd1db
tools/installPSResources.ps1
@@ -1,10 +1,12 @@
1
# Copyright (c) Microsoft Corporation.
2
# Licensed under the MIT License.
3
4
+Register-PSResourceRepository -PSGallery -Trusted -Force
5
if ($PSVersionTable.PSVersion.Major -lt 6) {
6
throw "The build script requires PowerShell 7!"
7
}
8
-# TODO: Switch to Install-PSResource when CI uses PowerShell 7.4
9
-Install-Module -Name InvokeBuild -Scope CurrentUser
10
-Install-Module -Name platyPS -Scope CurrentUser
+Write-Host $PSVersionTable
+
11
+Install-PSResource -Name InvokeBuild -Scope CurrentUser
12
+Install-PSResource -Name platyPS -Scope CurrentUser
0 commit comments