From 8e90ca1ae9c216d88b625a3cf710ec6748cf9247 Mon Sep 17 00:00:00 2001 From: Jan Tattermusch Date: Fri, 29 Jan 2016 16:30:58 -0800 Subject: create a .zip file with nuget packages --- src/csharp/build_packages.bat | 4 ++++ templates/src/csharp/build_packages.bat.template | 4 ++++ 2 files changed, 8 insertions(+) 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..3af66b3f3c 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 -- cgit v1.2.3 From ab09af4708d50f2e64e12f5126d5480cebde7236 Mon Sep 17 00:00:00 2001 From: Jan Tattermusch Date: Fri, 29 Jan 2016 18:49:32 -0800 Subject: Fix sanity test --- templates/src/csharp/build_packages.bat.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/src/csharp/build_packages.bat.template b/templates/src/csharp/build_packages.bat.template index 3af66b3f3c..1fe91b738e 100644 --- a/templates/src/csharp/build_packages.bat.template +++ b/templates/src/csharp/build_packages.bat.template @@ -53,7 +53,7 @@ @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\ + xcopy /Y /I csharp_nugets.zip ..\..\artifacts{"\\"} goto :EOF -- cgit v1.2.3 From f519a69685830fa948cfe60fb1f10451b8a35a07 Mon Sep 17 00:00:00 2001 From: Jan Tattermusch Date: Fri, 29 Jan 2016 19:36:50 -0800 Subject: Actually fix sanity tests --- templates/src/csharp/build_packages.bat.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/src/csharp/build_packages.bat.template b/templates/src/csharp/build_packages.bat.template index 1fe91b738e..847653bdcf 100644 --- a/templates/src/csharp/build_packages.bat.template +++ b/templates/src/csharp/build_packages.bat.template @@ -53,7 +53,7 @@ @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{"\\"} + xcopy /Y /I csharp_nugets.zip ..\..\artifacts${"\\"} goto :EOF -- cgit v1.2.3