diff --git a/run.cmd b/run.cmd index 400de820089..ff28235cacc 100644 --- a/run.cmd +++ b/run.cmd @@ -34,6 +34,12 @@ if not defined VisualStudioVersion ( :: misleading value (such as 'MCD' in HP PCs) may lead to build breakage (issue: #69). set Platform= + +:: Disable telemetry, first time experience, and global sdk look for the CLI +set DOTNET_CLI_TELEMETRY_OPTOUT=1 +set DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 +set DOTNET_MULTILEVEL_LOOKUP=0 + :: Restore the Tools directory call %~dp0init-tools.cmd if NOT [%ERRORLEVEL%]==[0] exit /b 1 diff --git a/run.sh b/run.sh index e090ef467c4..bbb5e82f2ec 100755 --- a/run.sh +++ b/run.sh @@ -2,6 +2,11 @@ __scriptpath=$(cd "$(dirname "$0")"; pwd -P) +# Disable telemetry, first time experience, and global sdk look for the CLI +export DOTNET_CLI_TELEMETRY_OPTOUT=1 +export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 +export DOTNET_MULTILEVEL_LOOKUP=0 + # Source the init-tools.sh script rather than execute in order to preserve ulimit values in child-processes. https://github.com/dotnet/corefx/issues/19152 . $__scriptpath/init-tools.sh