-
Notifications
You must be signed in to change notification settings - Fork 5
/
MyGet.bat
23 lines (18 loc) · 859 Bytes
/
MyGet.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
@echo Off
set config=%1
if "%config%" == "" (
set config=Release
)
if "%PackageVersion%" == "" (
set PackageVersion=1.0.0.0
)
set version=
if not "%PackageVersion%" == "" (
set version=-Version %PackageVersion%
)
REM Package restore
.nuget\nuget.exe restore Bebbs.Harmonize.sln -source "https://www.nuget.org/api/v2;https://www.myget.org/F/cogenity/;https://www.myget.org/F/bebbs/"
REM Build
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild Bebbs.Harmonize.sln /p:RunOctoPack=true /p:OctoPackPublishPackageToFileShare=..\Services /p:Configuration="%config%" /m /v:M /fl /flp:LogFile=msbuild.log;Verbosity=Normal /nr:false
REM Package
.nuget\nuget.exe pack Bebbs.Harmonize.With.Messaging.Via.SignalR.Client\Bebbs.Harmonize.With.Messaging.Via.SignalR.Client.csproj -OutputDirectory .\Services -Version %PackageVersion% -IncludeReferencedProjects