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