From a3635a697be34e8c301a8a1b901d1f33bd95adc0 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Wed, 19 Feb 2020 16:25:38 +0100 Subject: [PATCH] ProjectExplorer: Prevent telemetry collection by VS command-line tools Apparently, recent Visual Studio installations try to collect temeletry information via powershell in vsdevcmd.bat, which interferes with our toolchain setup process. Turn this behavior off. Task-number: QTCREATORBUG-20886 Change-Id: Ia81652fc721119980da980c043991df27f10a10f Reviewed-by: Oliver Wolff --- src/plugins/projectexplorer/msvctoolchain.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/projectexplorer/msvctoolchain.cpp b/src/plugins/projectexplorer/msvctoolchain.cpp index 2ab52663d08..9748b52f7fb 100644 --- a/src/plugins/projectexplorer/msvctoolchain.cpp +++ b/src/plugins/projectexplorer/msvctoolchain.cpp @@ -2053,6 +2053,7 @@ Utils::optional MsvcToolChain::generateEnvironmentSettings(const Utils: } if (Utils::HostOsInfo::isWindowsHost()) saver.write("chcp 65001\r\n"); + saver.write("set VSCMD_SKIP_SENDTELEMETRY=1\r\n"); saver.write(call + "\r\n"); saver.write("@echo " + marker.toLocal8Bit() + "\r\n"); saver.write("set\r\n");