Jelajahi Sumber

Merge pull request #4997 from jtattermusch/backport_nuget_building

Backport building C# nuget to 3.6.x branch
Feng Xiao 7 tahun lalu
induk
melakukan
199d6f6ea8

+ 1 - 1
csharp/global.json

@@ -1,5 +1,5 @@
 {
 {
   "sdk": {
   "sdk": {
-    "version": "2.0.3"
+    "version": "2.1.3"
   }
   }
 }
 }

+ 1 - 1
kokoro/linux/prepare_build_linux_rc

@@ -7,7 +7,7 @@ sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsof
 sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EB3E94ADBE1229CF
 sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EB3E94ADBE1229CF
 sudo apt-get update
 sudo apt-get update
 # We use the .NET Core SDK 2.x to build...
 # We use the .NET Core SDK 2.x to build...
-sudo apt-get install -y dotnet-sdk-2.0.3
+sudo apt-get install -y dotnet-sdk-2.1.3
 # But we also need the 1.x framework to test against, as we
 # But we also need the 1.x framework to test against, as we
 # target netstandard1.x
 # target netstandard1.x
 sudo apt-get install -y dotnet-sharedframework-microsoft.netcore.app-1.0.5
 sudo apt-get install -y dotnet-sharedframework-microsoft.netcore.app-1.0.5

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

@@ -0,0 +1,5 @@
+@rem enter repo root
+cd /d %~dp0\..\..\..\..
+
+cd csharp
+call build_packages.bat

+ 11 - 0
kokoro/release/csharp/windows/release.cfg

@@ -0,0 +1,11 @@
+# Config file for running tests in Kokoro
+
+# Location of the build script in repository
+build_file: "protobuf/kokoro/release/csharp/windows/build_nuget.bat"
+timeout_mins: 60
+
+action {
+  define_artifacts {
+    regex: "**/*.nupkg"
+  }
+}