浏览代码

fix problem when restoring C# dependencies on win2016 (#8243)

Jan Tattermusch 4 年之前
父节点
当前提交
94c3916dcf
共有 2 个文件被更改,包括 6 次插入0 次删除
  1. 3 0
      kokoro/release/csharp/windows/build_nuget.bat
  2. 3 0
      kokoro/windows/csharp/build.bat

+ 3 - 0
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

+ 3 - 0
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