forked from OData/RESTier
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BuildNuGets.cmd
30 lines (23 loc) · 900 Bytes
/
BuildNuGets.cmd
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
@ECHO OFF
pushd %~dp0
setlocal
if exist .nuget\nuget.exe goto Prepare
echo Downloading Nuget.exe
call build.cmd DownloadNuGet >NUL
:Prepare
if exist bin\nuget goto Configure
md bin\nuget
:Configure
set config=%1
if not defined config set config=Debug
if exist bin\nuget\%config% goto Build
md bin\nuget\%config%
:Build
set params=-Prop Configuration=%config% -OutputDirectory bin\nuget\%config%
.nuget\NuGet pack src\Microsoft.Restier.Core\Microsoft.Restier.Core.csproj %params%
.nuget\NuGet pack src\Microsoft.Restier.Security\Microsoft.Restier.Security.csproj %params%
.nuget\NuGet pack src\Microsoft.Restier.Providers.EntityFramework\Microsoft.Restier.Providers.EntityFramework.csproj %params%
.nuget\NuGet pack src\Microsoft.Restier.Publishers.OData\Microsoft.Restier.Publishers.OData.csproj %params%
.nuget\NuGet pack src\Microsoft.Restier\Microsoft.Restier.nuspec %params%
popd
endlocal