create a .zip file with nuget packages

pull/4973/head
Jan Tattermusch 9 years ago
parent ed00b0366d
commit 8e90ca1ae9
  1. 4
      src/csharp/build_packages.bat
  2. 4
      templates/src/csharp/build_packages.bat.template

@ -49,6 +49,10 @@ endlocal
@rem copy resulting nuget packages to artifacts directory @rem copy resulting nuget packages to artifacts directory
xcopy /Y /I *.nupkg ..\..\artifacts\ 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 goto :EOF
:error :error

@ -51,6 +51,10 @@
@rem copy resulting nuget packages to artifacts directory @rem copy resulting nuget packages to artifacts directory
xcopy /Y /I *.nupkg ..\..\artifacts${"\\"} 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 goto :EOF
:error :error

Loading…
Cancel
Save