From 67fee07308283b89adbae5628c3f6391defbd8a2 Mon Sep 17 00:00:00 2001 From: Jan Tattermusch Date: Tue, 12 Mar 2019 04:48:10 -0400 Subject: [PATCH] C#: set some dotnet options when testing --- kokoro/release/csharp/windows/build_nuget.bat | 4 ++++ kokoro/windows/csharp/build.bat | 4 ++++ tests.sh | 6 ++++++ 3 files changed, 14 insertions(+) diff --git a/kokoro/release/csharp/windows/build_nuget.bat b/kokoro/release/csharp/windows/build_nuget.bat index fdb02b0685..0ff8db0428 100644 --- a/kokoro/release/csharp/windows/build_nuget.bat +++ b/kokoro/release/csharp/windows/build_nuget.bat @@ -7,4 +7,8 @@ cd csharp powershell -File install_dotnet_sdk.ps1 set PATH=%LOCALAPPDATA%\Microsoft\dotnet;%PATH% +@rem Disable some unwanted dotnet options +set DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true +set DOTNET_CLI_TELEMETRY_OPTOUT=true + call build_packages.bat diff --git a/kokoro/windows/csharp/build.bat b/kokoro/windows/csharp/build.bat index 94d0906cc6..95224f2eb2 100644 --- a/kokoro/windows/csharp/build.bat +++ b/kokoro/windows/csharp/build.bat @@ -7,4 +7,8 @@ cd csharp powershell -File install_dotnet_sdk.ps1 set PATH=%LOCALAPPDATA%\Microsoft\dotnet;%PATH% +@rem Disable some unwanted dotnet options +set DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true +set DOTNET_CLI_TELEMETRY_OPTOUT=true + call buildall.bat diff --git a/tests.sh b/tests.sh index 09edfbfb15..6bfd1a848a 100755 --- a/tests.sh +++ b/tests.sh @@ -117,6 +117,12 @@ build_csharp() { internal_build_cpp NUGET=/usr/local/bin/nuget.exe + # Disable some unwanted dotnet options + export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true + export DOTNET_CLI_TELEMETRY_OPTOUT=true + + # TODO(jtattermusch): is this still needed with "first time experience" + # disabled? # Perform "dotnet new" once to get the setup preprocessing out of the # way. That spews a lot of output (including backspaces) into logs # otherwise, and can cause problems. It doesn't matter if this step