| 123456789101112131415161718192021222324252627282930 |
- @echo off
- set nuget=D:\Projects\nuget.exe
- rem ** check if directories exists **
- if not exist "bin" goto err_bin_not_found
- if not exists %LOCAL_NUGET_REPO% goto err_locnuget_not_found
- rem ** cleanup **
- rmdir /s /q bin\debug
- %nuget%
- rem ** build **
- dotnet pack -c Debug
- for %i in (bin\debug) do nuget
- goto done
- :err_bin_not_found
- echo ERR: missing 'bin' directory in current location
- goto exit
- :err_locnuget_not_found
- echo ERR: cannot access directory stored in enviromental variable 'LOCAL_NUGET_REPO' or path is invalid.
- goto exit
- :done
- echo *** DONE ***
- :exit
|