Forráskód Böngészése

overcome the global.json constraint with a hack

Jan Tattermusch 7 éve
szülő
commit
937884476e
1 módosított fájl, 9 hozzáadás és 0 törlés
  1. 9 0
      kokoro/release/csharp/windows/build_nuget.bat

+ 9 - 0
kokoro/release/csharp/windows/build_nuget.bat

@@ -2,4 +2,13 @@
 cd /d %~dp0\..\..\..\..
 
 cd csharp
+
+@rem see what dotnet version is available
+dotnet --version
+
+@rem TODO(jtattermusch): Kokoro workers currently only have dotnet SDK 2.1.3
+@rem so we just overwrite the SDK requirement in global.json as the results
+@rem should be fully compatible.
+echo { "sdk": { "version": "2.1.3" } } >global.json
+
 call build_packages.bat