-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpush-to-nuget.bat
41 lines (30 loc) · 1.41 KB
/
push-to-nuget.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
@echo off
if exist "%VS120COMNTOOLS%vsvars32.bat" call "%VS120COMNTOOLS%vsvars32.bat" & goto VARSSET
IF EXIST "%VS110COMNTOOLS%vsvars32.bat" call "%VS110COMNTOOLS%vsvars32.bat" & goto VARSSET
IF EXIST "%VS100COMNTOOLS%vsvars32.bat" call "%VS100COMNTOOLS%vsvars32.bat" & goto VARSSET
echo "Could not detect VS version!" & goto ERROR
:VARSSET
mkdir nupkg_archive
msbuild.exe "src\Simplicity\Simplicity.csproj" /p:configuration=Release
if %ERRORLEVEL% neq 0 goto ERROR
.nuget\nuget.exe pack src\Simplicity\Simplicity.csproj -Prop Configuration=Release
if %ERRORLEVEL% neq 0 goto ERROR
for %%f in (*.nupkg) do (
.nuget\nuget.exe push %%f
if %ERRORLEVEL% neq 0 goto ERROR
)
copy *.nupkg nupkg_archive\
del *.nupkg
goto SUCCESS
:SUCCESS
echo SUCCESS
goto END
:ERROR
echo .
echo Ffffff Aaa Iiii Ll
echo Ff Aa Aa Ii Ll
echo Fffff Aa Aa Ii Ll
echo Ff Aaaaaaa Ii Ll
echo Ff Aa Aa Iiii Llllll
echo .
:END