[Windows] Install vsix extensions using CDN endpoint (#3244)

* Install extensions for VS19

* Get vsix packages name in runtime

* add a bit of debug

* Get extension id from the marketplace uri

* Add extension name

* skip vcredist installation

* Add Get-VsixExtenstionFromMarketplace to ImageHelpers.psm1

* Fix DownloadUri name in the function

* DownloadUri in lower case

* Add packages to the readme

* Add a condition to software report

* fix spelling in function

* Simplify toolset + get rid of backticks
This commit is contained in:
Mikhail Timofeev
2021-04-23 19:38:43 +03:00
committed by GitHub
parent 5690645f0e
commit cd4ecad2e6
6 changed files with 63 additions and 40 deletions

View File

@@ -12,7 +12,9 @@ if (-not $vsixPackagesList) {
$vsVersion = $toolset.visualStudio.Version
$vsixPackagesList | ForEach-Object {
Install-VsixExtension -Url $_.url -Name $_.name -VSversion $vsVersion
# 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"