mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
27 lines
737 B
PowerShell
27 lines
737 B
PowerShell
###################################################################################
|
|
## File: Install-Vsix.ps1
|
|
## Desc: Install the Visual Studio Extensions from toolset.json
|
|
###################################################################################
|
|
|
|
Import-Module -Name ImageHelpers -Force
|
|
$ErrorActionPreference = "Stop"
|
|
|
|
$toolset = Get-ToolsetContent
|
|
$requiredVsixs = $toolset.visualStudio.vsix
|
|
if(-not $requiredVsixs) {
|
|
Write-Host "No requiered VSIX"
|
|
exit 0
|
|
}
|
|
|
|
if (Test-IsWin19) {
|
|
$VsVersion = '2019'
|
|
}
|
|
else {
|
|
$VsVersion = '2017'
|
|
}
|
|
|
|
$requiredVsixs | ForEach-Object {
|
|
Install-VsixExtension -url $_.url -name $_.name -VsVersion $VsVersion
|
|
}
|
|
|
|
Invoke-PesterTests -TestFile "Vsix" |