Add a script for restoring Visual Studio
This commit is contained in:
parent
d6df09358c
commit
ca681c1497
1 changed files with 16 additions and 0 deletions
|
@ -31,4 +31,20 @@ $null = New-Module {
|
|||
"--quiet");
|
||||
}
|
||||
}
|
||||
|
||||
function Restore-VisualStudio([Context] $context) {
|
||||
Write-Host "Restoring Visual Studio";
|
||||
|
||||
foreach ($version in $versions) {
|
||||
Write-Information "Restoring $($version[1]): $($version[2])";
|
||||
$configFileName = Get-ConfigPath $context $version[0];
|
||||
$arguments = "";
|
||||
|
||||
if (Test-Path $configFileName) {
|
||||
$arguments = "--config `"$configFileName`"";
|
||||
}
|
||||
|
||||
choco install -y $version[0] --params "$arguments";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue