removed changes

pull/16/head
Nikita Bykov 4 years ago
parent 89ebce9383
commit 94d8a3af83

@ -3,7 +3,7 @@
### ###
function Get-VSWhere { function Get-VSWhere {
$vswhere = "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" $vswhere = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe";
if (-not (Test-Path $vswhere )) { if (-not (Test-Path $vswhere )) {
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12 [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12
@ -34,11 +34,9 @@ function Invoke-Environment
} }
function Get-VSInstallationPath { function Get-VSInstallationPath {
Write-Host "ProgramFiles(x86) - ${env:ProgramFiles(x86)}"
$vswhere = Get-VSWhere $vswhere = Get-VSWhere
Write-Host "vswhere - $vswhere"
$installationPath = & $vswhere -prerelease -legacy -latest -property installationPath $installationPath = & $vswhere -prerelease -legacy -latest -property installationPath
Write-Host "installationPath - $installationPath"
return $installationPath return $installationPath
} }

Loading…
Cancel
Save