markfinal / BuildAMation

Build system and project generator for C/C++ desktop software development. Uses C# for build scripts. It is no longer under active development.
http://buildamation.com
BSD 3-Clause "New" or "Revised" License
14 stars 9 forks source link

VS2019 vcvarsall.bat causes a dialog to open for powershell to send telemetry #636

Closed markfinal closed 5 years ago

markfinal commented 5 years ago

Due to this in C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\VsDevCmd.bat

@REM Send Telemetry
if "%VSCMD_SKIP_SENDTELEMETRY%"=="" (
    if "%VSCMD_DEBUG%" NEQ "" (
        @echo [DEBUG:%~nx0] Sending telemetry
        powershell.exe -Command "& {Import-Module '%~dp0\vsdevshell\Microsoft.VisualStudio.DevShell.dll'; Send-VsDevShellTelemetry -NewInstanceType Cmd; }"
    ) else (
        START "" /B powershell.exe -Command "& {Import-Module '%~dp0\vsdevshell\Microsoft.VisualStudio.DevShell.dll'; Send-VsDevShellTelemetry -NewInstanceType Cmd; }" > NUL
    )
)

For non-interactive continuous integration, this causes the builds to halt indefinitely.