-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathbuild-all-packages.cmd
More file actions
158 lines (135 loc) · 4.86 KB
/
build-all-packages.cmd
File metadata and controls
158 lines (135 loc) · 4.86 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
@echo off
REM Build script to create both Full and Lite packages for all release channels
REM This builds all package variants in parallel where possible
setlocal enabledelayedexpansion
echo ================================================================================
echo Krypton Extended Toolkit - Build All Package Variants
echo ================================================================================
echo.
set SOLUTION="Source\Krypton Toolkit\Krypton Toolkit Suite Extended 2022 - VS2022.sln"
echo This will build the following package variants:
echo.
echo FULL PACKAGES (6 TFMs - includes net472):
echo 1. Release
echo 2. Canary (beta)
echo 3. Nightly (alpha)
echo.
echo LITE PACKAGES (5 TFMs - excludes net472):
echo 4. ReleaseLite
echo 5. CanaryLite (beta)
echo 6. NightlyLite (alpha)
echo.
echo Total: 366 packages (61 projects x 6 configurations)
echo.
set /p confirm="Continue? (Y/N): "
if /i not "%confirm%"=="Y" (
echo Build cancelled.
exit /b 0
)
echo.
echo ================================================================================
echo Step 1: Clean previous builds
echo ================================================================================
echo.
dotnet clean %SOLUTION%
if errorlevel 1 (
echo ERROR: Clean failed
exit /b 1
)
echo.
echo ================================================================================
echo Step 2: Restore NuGet packages
echo ================================================================================
echo.
dotnet restore %SOLUTION%
if errorlevel 1 (
echo ERROR: Restore failed
exit /b 1
)
echo.
echo ================================================================================
echo Step 3: Build and Pack - Release (Full - 6 TFMs)
echo ================================================================================
echo.
dotnet pack %SOLUTION% -c Release --no-restore
if errorlevel 1 (
echo ERROR: Release build failed
exit /b 1
)
echo.
echo ================================================================================
echo Step 4: Build and Pack - ReleaseLite (Lite - 5 TFMs)
echo ================================================================================
echo.
dotnet pack %SOLUTION% -c ReleaseLite --no-restore
if errorlevel 1 (
echo ERROR: ReleaseLite build failed
exit /b 1
)
echo.
echo ================================================================================
echo Step 5: Build and Pack - Canary (Full - 6 TFMs)
echo ================================================================================
echo.
dotnet pack %SOLUTION% -c Canary --no-restore
if errorlevel 1 (
echo ERROR: Canary build failed
exit /b 1
)
echo.
echo ================================================================================
echo Step 6: Build and Pack - CanaryLite (Lite - 5 TFMs)
echo ================================================================================
echo.
dotnet pack %SOLUTION% -c CanaryLite --no-restore
if errorlevel 1 (
echo ERROR: CanaryLite build failed
exit /b 1
)
echo.
echo ================================================================================
echo Step 7: Build and Pack - Nightly (Full - 6 TFMs)
echo ================================================================================
echo.
dotnet pack %SOLUTION% -c Nightly --no-restore
if errorlevel 1 (
echo ERROR: Nightly build failed
exit /b 1
)
echo.
echo ================================================================================
echo Step 8: Build and Pack - NightlyLite (Lite - 5 TFMs)
echo ================================================================================
echo.
dotnet pack %SOLUTION% -c NightlyLite --no-restore
if errorlevel 1 (
echo ERROR: NightlyLite build failed
exit /b 1
)
echo.
echo ================================================================================
echo Build Complete! Summary:
echo ================================================================================
echo.
echo Package locations:
echo Release (Full): Bin\NuGet Packages\Release\
echo ReleaseLite (Lite): Bin\NuGet Packages\Release\
echo Canary (Full): Bin\NuGet Packages\Canary\
echo CanaryLite (Lite): Bin\NuGet Packages\Canary\
echo Nightly (Full): Bin\NuGet Packages\Nightly\
echo NightlyLite (Lite): Bin\NuGet Packages\Nightly\
echo.
echo Total packages created: ~366 (61 projects x 6 configurations)
echo.
echo Package naming:
echo Release: PackageName.nupkg
echo ReleaseLite: PackageName.Lite.nupkg
echo Canary: PackageName.Canary.nupkg
echo CanaryLite: PackageName.Lite.Canary.nupkg
echo Nightly: PackageName.Nightly.nupkg
echo NightlyLite: PackageName.Lite.Nightly.nupkg
echo.
echo ================================================================================
echo Build and Pack completed successfully!
echo ================================================================================
pause