···4747$installPath = "C:\BuildTools"
4848Write-Output "installPath: $installPath"
49495050-# Note that we can't have $ErrorActionPreference as "Stop" here:
5151-# it "errors" (not finding some shared tool because of our mini build tools install)
5252-# but the error doesn't matter for our use case.
5353-Write-Output "There may be a harmless error about 'Team Explorer' shown next, which may be ignored."
5454-$ErrorActionPreference = 'Continue'
5050+# We have to clear this because some characters in a commit message may confuse cmd/Enter-VsDevShell.
5151+$env:CI_COMMIT_DESCRIPTION = ""
5252+$env:CI_COMMIT_MESSAGE = ""
5353+5554Import-Module (Join-Path $installPath "Common7\Tools\Microsoft.VisualStudio.DevShell.dll")
5655Enter-VsDevShell -VsInstallPath $installPath -SkipAutomaticLocation -DevCmdArguments '-arch=x64 -no_logo -host_arch=amd64'
5756