mirror of
https://github.com/actions/runner-images.git
synced 2026-01-06 18:19:54 +08:00
$VsVersion now is got from toolset
This commit is contained in:
@@ -12,13 +12,7 @@ if(-not $requiredVsixs) {
|
|||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Test-IsWin19) {
|
$VsVersion = $toolset.visualStudio.Version
|
||||||
$VsVersion = '2019'
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$VsVersion = '2017'
|
|
||||||
}
|
|
||||||
|
|
||||||
$requiredVsixs | ForEach-Object {
|
$requiredVsixs | ForEach-Object {
|
||||||
Install-VsixExtension -url $_.url -name $_.name -VsVersion $VsVersion
|
Install-VsixExtension -url $_.url -name $_.name -VsVersion $VsVersion
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user