Files
runner-images/images/win/scripts/Installers/Install-Vsix.ps1
V-Zabayrachny 573c5aa999 [Windows] Add installer projects to VS on Windows-2022 (#4715)
* [Windows] Add installer projects to VS on windows-2022

* [Windows] Improve the function Install-VsixExtension
2021-12-14 11:31:48 +03:00

20 lines
863 B
PowerShell

###################################################################################
## File: Install-Vsix.ps1
## Desc: Install the Visual Studio Extensions from toolset.json
###################################################################################
$toolset = Get-ToolsetContent
$vsixPackagesList = $toolset.visualStudio.vsix
if (-not $vsixPackagesList) {
Write-Host "No extensions to install"
exit 0
}
$vsVersion = $toolset.visualStudio.Version
$vsixPackagesList | ForEach-Object {
# Retrieve cdn endpoint to avoid HTTP error 429 https://github.com/actions/virtual-environments/issues/3074
$vsixPackage = Get-VsixExtenstionFromMarketplace -ExtensionMarketPlaceName $_
Install-VsixExtension -Url $vsixPackage.DownloadUri -Name $vsixPackage.FileName -VSversion $vsVersion
}
Invoke-PesterTests -TestFile "Vsix"