initial
This commit is contained in:
commit
baa0056244
352 changed files with 47928 additions and 0 deletions
24
tools/installPSResources.ps1
Normal file
24
tools/installPSResources.ps1
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
# Copyright (c) Microsoft Corporation.
|
||||
# Licensed under the MIT License.
|
||||
param(
|
||||
[ValidateSet("PSGallery", "CFS")]
|
||||
[string]$PSRepository = "PSGallery"
|
||||
)
|
||||
|
||||
if ($PSRepository -eq "CFS" -and -not (Get-PSResourceRepository -Name CFS -ErrorAction SilentlyContinue)) {
|
||||
Register-PSResourceRepository -Name CFS -Uri "https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/PowerShellGalleryMirror/nuget/v3/index.json"
|
||||
}
|
||||
|
||||
# NOTE: Due to a bug in Install-PSResource with upstream feeds, we have to
|
||||
# request an exact version. Otherwise, if a newer version is available in the
|
||||
# upstream feed, it will fail to install any version at all.
|
||||
Install-PSResource -Verbose -TrustRepository -RequiredResource @{
|
||||
InvokeBuild = @{
|
||||
version = "5.14.18"
|
||||
repository = $PSRepository
|
||||
}
|
||||
platyPS = @{
|
||||
version = "0.14.2"
|
||||
repository = $PSRepository
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue