Files
runner-images-sangeeth/images/win/scripts/Installers/Install-Vsix.ps1
T

20 lines
670 B
PowerShell
Raw Normal View History

2020-09-09 08:55:15 +04:00
###################################################################################
## File: Install-Vsix.ps1
## Desc: Install the Visual Studio Extensions from toolset.json
###################################################################################
$ErrorActionPreference = "Stop"
$toolset = Get-ToolsetContent
2020-09-11 16:19:27 +04:00
$vsixPackagesList = $toolset.visualStudio.vsix
2020-09-11 19:10:05 +04:00
if (-not $vsixPackagesList) {
2020-09-11 16:19:27 +04:00
Write-Host "No extensions to install"
2020-09-11 13:38:58 +04:00
exit 0
2020-09-11 13:25:22 +04:00
}
2020-09-09 08:55:15 +04:00
2020-09-11 14:43:21 +04:00
$VsVersion = $toolset.visualStudio.Version
2020-09-11 16:19:27 +04:00
$vsixPackagesList | ForEach-Object {
2020-09-09 08:55:15 +04:00
Install-VsixExtension -url $_.url -name $_.name -VsVersion $VsVersion
}
Invoke-PesterTests -TestFile "Vsix"