Skip to content

Commit 8818ab4

Browse files
committed
update package build script
1 parent ee05f24 commit 8818ab4

File tree

1 file changed

+21
-8
lines changed

1 file changed

+21
-8
lines changed

nuget/build-and-pack.cmd

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,33 @@ cd ..
1212
REM echo "Downloading native..."
1313
REM call download-native.cmd
1414

15-
nuget restore
15+
@REM --------------------------------
16+
@echo Building RocksDbNative
17+
cd RocksDbNative
18+
@echo Restoring...
19+
msbuild /t:Restore
1620
@if %errorlevel% neq 0 goto oops
17-
18-
msbuild /p:Configuration=Release /t:Rebuild,Pack RocksDbNative\RocksDbNative.csproj
21+
@echo Building...
22+
msbuild /p:Configuration=Release /t:Rebuild,Pack
1923
@if %errorlevel% neq 0 goto oops
20-
21-
msbuild /p:Configuration=Release /t:Rebuild,Pack RocksDbSharp\RocksDbSharp.csproj
24+
@echo Installing...
25+
move /y bin\Release\*.nupkg ..\nuget\
2226
@if %errorlevel% neq 0 goto oops
27+
cd ..
2328

24-
move /y RocksDbSharp\bin\Release\*.nupkg .\nuget\
29+
@REM --------------------------------
30+
@echo Building RocksDbSharp
31+
cd RocksDbSharp
32+
@echo Restoring...
33+
msbuild /t:Restore
2534
@if %errorlevel% neq 0 goto oops
26-
27-
move /y RocksDbNative\bin\Release\*.nupkg .\nuget\
35+
@echo Building...
36+
msbuild /p:Configuration=Release /t:Rebuild,Pack
37+
@if %errorlevel% neq 0 goto oops
38+
@echo Installing...
39+
move /y bin\Release\*.nupkg ..\nuget\
2840
@if %errorlevel% neq 0 goto oops
41+
cd ..
2942

3043
:good
3144
popd

0 commit comments

Comments
 (0)