Skip to content

Instantly share code, notes, and snippets.

@Segment0895
Created August 23, 2016 16:58
Show Gist options
  • Save Segment0895/c7b3036538efe0a6b2d6fc7737b647be to your computer and use it in GitHub Desktop.
Save Segment0895/c7b3036538efe0a6b2d6fc7737b647be to your computer and use it in GitHub Desktop.
generate Nupkg from a folder full of DLL, one DLL per Nupkg
@echo off
:lib
mkdir BUILD
cd BUILD
mkdir lib
cd ..
cd INCOMING_DLL
for /r %%I in (.dll) do (
echo LOOPing1
cd ..\BUILD
del lib\ /Q /S
copy %%I lib
echo SPECing
..\nuget spec %%~nI -f
echo PACKing
..\nuget pack %%~nI.nuspec
del lib\* /Q /S
)
cd ..
:repo
echo COPYing to out
nuget init BUILD NUGET
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment