forked from dotnet/winforms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBuildAndPackage.cmd
More file actions
33 lines (29 loc) · 910 Bytes
/
BuildAndPackage.cmd
File metadata and controls
33 lines (29 loc) · 910 Bytes
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
@echo off
echo Custom NuGet Package Build Script for System.Windows.Forms
echo =========================================================
echo.
REM Clean the workspace
echo Cleaning workspace...
git clean -dfx
if errorlevel 1 (
echo Error: Failed to clean workspace
exit /b 1
)
REM Build the solution in Release configuration
echo Building solution in Release configuration...
dotnet build Winforms.sln -c Release
if errorlevel 1 (
echo Error: Failed to build solution
exit /b 1
)
REM Run the custom packaging script
echo Running custom packaging...
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0CreateCustomPackageStandalone.ps1"
if errorlevel 1 (
echo Error: Failed to create custom package
exit /b 1
)
echo.
echo Build and packaging completed successfully!
echo Check the artifacts\packages\Release\Shipping folder for the System.Windows.Forms.*.nupkg file.
pause