forked from maartenba/GoogleAnalyticsTracker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.bat
59 lines (54 loc) · 4.03 KB
/
build.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
@echo Off
set config=%1
if "%config%" == "" (
set config=Release
)
set version=
if not "%PackageVersion%" == "" (
set version=-Version %PackageVersion%
)
REM Package restore
tools\nuget.exe restore GoogleAnalyticsTracker.sln -OutputDirectory %cd%\packages -NonInteractive
REM Build
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild GoogleAnalyticsTracker.sln /p:Configuration="%config%" /m /v:M /fl /flp:LogFile=msbuild.log;Verbosity=Normal /nr:false
REM Package
mkdir Build
mkdir Build\nuget
tools\nuget.exe pack "GoogleAnalyticsTracker.Core\GoogleAnalyticsTracker.Core.csproj" -symbols -o Build\nuget -p Configuration=%config% %version%
tools\nuget.exe pack "GoogleAnalyticsTracker.Simple\GoogleAnalyticsTracker.Simple.csproj" -symbols -o Build\nuget -p Configuration=%config% %version%
tools\nuget.exe pack "GoogleAnalyticsTracker.Nancy\GoogleAnalyticsTracker.Nancy.csproj" -symbols -o Build\nuget -p Configuration=%config% %version%
tools\nuget.exe pack "GoogleAnalyticsTracker.MVC4\GoogleAnalyticsTracker.MVC4.csproj" -symbols -o Build\nuget -p Configuration=%config% %version%
tools\nuget.exe pack "GoogleAnalyticsTracker.MVC5\GoogleAnalyticsTracker.MVC5.csproj" -symbols -o Build\nuget -p Configuration=%config% %version%
tools\nuget.exe pack "GoogleAnalyticsTracker.WebAPI\GoogleAnalyticsTracker.WebAPI.csproj" -symbols -o Build\nuget -p Configuration=%config% %version%
tools\nuget.exe pack "GoogleAnalyticsTracker.WebAPI2\GoogleAnalyticsTracker.WebAPI2.csproj" -symbols -o Build\nuget -p Configuration=%config% %version%
tools\nuget.exe pack "GoogleAnalyticsTracker.Owin\GoogleAnalyticsTracker.Owin.csproj" -symbols -o Build\nuget -p Configuration=%config% %version%
tools\nuget.exe pack "GoogleAnalyticsTracker.Nancy\GoogleAnalyticsTracker.Nancy.csproj" -symbols -o Build\nuget -p Configuration=%config% %version%
tools\nuget.exe pack "GoogleAnalyticsTracker.RT\GoogleAnalyticsTracker.RT.csproj" -symbols -o Build\nuget -p Configuration=%config% %version%
tools\nuget.exe pack "GoogleAnalyticsTracker.WP8\GoogleAnalyticsTracker.WP8.csproj" -symbols -o Build\nuget -p Configuration=%config% %version%
tools\nuget.exe pack "GoogleAnalyticsTracker.Owin\GoogleAnalyticsTracker.Owin.csproj" -symbols -o Build\nuget -p Configuration=%config% %version%
REM Plain assemblies
mkdir Build\assemblies
copy GoogleAnalyticsTracker.Core\bin\%config%\Google*.dll Build\assemblies
copy GoogleAnalyticsTracker.Core\bin\%config%\Google*.pdb Build\assemblies
copy GoogleAnalyticsTracker.Simple\bin\%config%\Google*.dll Build\assemblies
copy GoogleAnalyticsTracker.Simple\bin\%config%\Google*.pdb Build\assemblies
copy GoogleAnalyticsTracker.Nancy\bin\%config%\Google*.dll Build\assemblies
copy GoogleAnalyticsTracker.Nancy\bin\%config%\Google*.pdb Build\assemblies
copy GoogleAnalyticsTracker.MVC4\bin\%config%\Google*.dll Build\assemblies
copy GoogleAnalyticsTracker.MVC4\bin\%config%\Google*.pdb Build\assemblies
copy GoogleAnalyticsTracker.MVC5\bin\%config%\Google*.dll Build\assemblies
copy GoogleAnalyticsTracker.MVC5\bin\%config%\Google*.pdb Build\assemblies
copy GoogleAnalyticsTracker.WebAPI\bin\%config%\Google*.dll Build\assemblies
copy GoogleAnalyticsTracker.WebAPI\bin\%config%\Google*.pdb Build\assemblies
copy GoogleAnalyticsTracker.WebAPI2\bin\%config%\Google*.dll Build\assemblies
copy GoogleAnalyticsTracker.WebAPI2\bin\%config%\Google*.pdb Build\assemblies
copy GoogleAnalyticsTracker.Owin\bin\%config%\Google*.dll Build\assemblies
copy GoogleAnalyticsTracker.Owin\bin\%config%\Google*.pdb Build\assemblies
copy GoogleAnalyticsTracker.Nancy\bin\%config%\Google*.dll Build\assemblies
copy GoogleAnalyticsTracker.Nancy\bin\%config%\Google*.pdb Build\assemblies
copy GoogleAnalyticsTracker.RT\bin\%config%\Google*.dll Build\assemblies
copy GoogleAnalyticsTracker.RT\bin\%config%\Google*.pdb Build\assemblies
copy GoogleAnalyticsTracker.WP8\bin\%config%\Google*.dll Build\assemblies
copy GoogleAnalyticsTracker.WP8\bin\%config%\Google*.pdb Build\assemblies
copy GoogleAnalyticsTracker.Owin\bin\%config%\Google*.dll Build\assemblies
copy GoogleAnalyticsTracker.Owin\bin\%config%\Google*.pdb Build\assemblies