mirror of
https://github.com/actions/versions-package-tools.git
synced 2025-12-10 03:13:23 +00:00
removed changes
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user