aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@users.noreply.github.com>2016-01-29 19:41:10 -0800
committerGravatar Jan Tattermusch <jtattermusch@users.noreply.github.com>2016-01-29 19:41:10 -0800
commit94786a8454211b8c7ec1959312f153cb949f89f5 (patch)
tree0328e50e93fb754227d71b5e09d6b65f368c36ae
parented00b0366d9022bdfe47bbf4c0b4bff1bf03d195 (diff)
parentf519a69685830fa948cfe60fb1f10451b8a35a07 (diff)
Merge pull request #4973 from jtattermusch/zip_nugets
Create .zip file with C# nuget packages
-rw-r--r--src/csharp/build_packages.bat4
-rw-r--r--templates/src/csharp/build_packages.bat.template4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/csharp/build_packages.bat b/src/csharp/build_packages.bat
index 7a34bf3fd6..e423545ef8 100644
--- a/src/csharp/build_packages.bat
+++ b/src/csharp/build_packages.bat
@@ -49,6 +49,10 @@ endlocal
@rem copy resulting nuget packages to artifacts directory
xcopy /Y /I *.nupkg ..\..\artifacts\
+@rem create a zipfile with the artifacts as well
+powershell -Command "Add-Type -Assembly 'System.IO.Compression.FileSystem'; [System.IO.Compression.ZipFile]::CreateFromDirectory('..\..\artifacts', 'csharp_nugets.zip');"
+xcopy /Y /I csharp_nugets.zip ..\..\artifacts\
+
goto :EOF
:error
diff --git a/templates/src/csharp/build_packages.bat.template b/templates/src/csharp/build_packages.bat.template
index bf831a9e3b..847653bdcf 100644
--- a/templates/src/csharp/build_packages.bat.template
+++ b/templates/src/csharp/build_packages.bat.template
@@ -51,6 +51,10 @@
@rem copy resulting nuget packages to artifacts directory
xcopy /Y /I *.nupkg ..\..\artifacts${"\\"}
+ @rem create a zipfile with the artifacts as well
+ powershell -Command "Add-Type -Assembly 'System.IO.Compression.FileSystem'; [System.IO.Compression.ZipFile]::CreateFromDirectory('..\..\artifacts', 'csharp_nugets.zip');"
+ xcopy /Y /I csharp_nugets.zip ..\..\artifacts${"\\"}
+
goto :EOF
:error