-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRelease.cmd
50 lines (36 loc) · 1.61 KB
/
Release.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
@echo off
IF NOT DEFINED VS120COMNTOOLS (goto :VSNotDefined)
CALL "%VS120COMNTOOLS%..\..\VC\vcvarsall.bat"
SET Root=%~dp0
SET PKSolution=%Root%PK.sln
SET TestResult=%Root%TestResults
SET Sources=%Root%Sources
SET Tests=%Root%Tests
SET Package=%Root%Package
SET Packages=%Root%Packages
SET NuGet=%Root%.nuget\NuGet.exe
SET PKNuGet=%Sources%\PK.NuGet
SET PKNuGetProj=%PKNuGet%\PK.NuGet.csproj
SET PKCommon=%Sources%\PK.Common
SET PKCommonProj=%PKCommon%\PK.Common.csproj
SET PKSettings=%Sources%\PK.Settings
SET PKSettingsProj=%PKSettings%\PK.Settings.csproj
SET PKSettingsStoreApps=%Sources%\PK.Settings.StoreApps
SET PKSettingsStoreAppsProj=%PKSettingsStoreApps%\PK.Settings.StoreApps.csproj
SET PKSettingsAppSettings=%Sources%\PK.Settings.AppSettings.Net45
SET PKSettingsAppSettingsProj=%PKSettingsAppSettings%\PK.Settings.AppSettings.Net45.csproj
SET PKApplication=%Sources%\PK.Application
SET PKApplicationProj=%PKApplication%\PK.Application.csproj
SET PKApplicationWeb=%Sources%\PK.Application.Web.Net45
SET PKApplicationWebProj=%PKApplicationWeb%\PK.Application.Web.Net45.csproj
%NuGet% restore %PKSolution%
msbuild /t:Pack /p:Configuration=Release %PKNuGetProj%
msbuild /t:Pack /p:Configuration=Release %PKCommonProj%
msbuild /t:Pack /p:Configuration=Release %PKSettingsProj%
msbuild /t:Pack /p:Configuration=Release %PKSettingsStoreAppsProj%
msbuild /t:Pack /p:Configuration=Release %PKSettingsAppSettingsProj%
msbuild /t:Pack /p:Configuration=Release %PKApplicationProj%
msbuild /t:Pack /p:Configuration=Release %PKApplicationWebProj%
goto :eof
:VSNotDefined
echo Cannot generate packages because VS120COMNTOOLS is not defined