From 94c3916dcfaf87cc1b4fdc7270b603636f7a70fd Mon Sep 17 00:00:00 2001 From: Jan Tattermusch Date: Mon, 1 Feb 2021 18:25:56 +0100 Subject: [PATCH] fix problem when restoring C# dependencies on win2016 (#8243) --- kokoro/release/csharp/windows/build_nuget.bat | 3 +++ kokoro/windows/csharp/build.bat | 3 +++ 2 files changed, 6 insertions(+) diff --git a/kokoro/release/csharp/windows/build_nuget.bat b/kokoro/release/csharp/windows/build_nuget.bat index 0ff8db0428..590c391dd4 100644 --- a/kokoro/release/csharp/windows/build_nuget.bat +++ b/kokoro/release/csharp/windows/build_nuget.bat @@ -11,4 +11,7 @@ set PATH=%LOCALAPPDATA%\Microsoft\dotnet;%PATH% set DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true set DOTNET_CLI_TELEMETRY_OPTOUT=true +@rem Work around https://github.com/dotnet/core/issues/5881 +dotnet nuget locals all --clear + call build_packages.bat diff --git a/kokoro/windows/csharp/build.bat b/kokoro/windows/csharp/build.bat index 95224f2eb2..4f1df377c0 100644 --- a/kokoro/windows/csharp/build.bat +++ b/kokoro/windows/csharp/build.bat @@ -11,4 +11,7 @@ set PATH=%LOCALAPPDATA%\Microsoft\dotnet;%PATH% set DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true set DOTNET_CLI_TELEMETRY_OPTOUT=true +@rem Work around https://github.com/dotnet/core/issues/5881 +dotnet nuget locals all --clear + call buildall.bat