mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-31 22:18:12 +08:00
Install-Vsix.ps1 has been created
This commit is contained in:
21
images/win/scripts/Installers/Install-Vsix.ps1
Normal file
21
images/win/scripts/Installers/Install-Vsix.ps1
Normal file
@@ -0,0 +1,21 @@
|
||||
###################################################################################
|
||||
## 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 (Test-IsWin19) {
|
||||
$VsVersion = '2019'
|
||||
}
|
||||
else {
|
||||
$VsVersion = '2017'
|
||||
}
|
||||
|
||||
$requiredVsixs | ForEach-Object {
|
||||
Install-VsixExtension -url $_.url -name $_.name -VsVersion $VsVersion
|
||||
}
|
||||
Reference in New Issue
Block a user