env.ps1 563 B

12345678910
  1. # This script enables Developer Command Prompt
  2. # See https://github.com/microsoft/vswhere/wiki/Start-Developer-Command-Prompt#using-powershell
  3. $installationPath = vswhere.exe -latest -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath
  4. if ($installationPath -and (Test-Path "$installationPath\Common7\Tools\vsdevcmd.bat")) {
  5. & "${env:COMSPEC}" /s /c "`"$installationPath\Common7\Tools\vsdevcmd.bat`" -arch=x64 -no_logo && set" | ForEach-Object {
  6. $name, $value = $_ -split '=', 2
  7. "$name=$value" >> $env:GITHUB_ENV
  8. }
  9. }