corp-app/clean-and-build.bat

27 lines
449 B
Batchfile

@echo off
echo Cleaning CORP-MAUI project...
REM Kill any running CORP-MAUI processes
taskkill /F /IM CORP-MAUI.exe 2>nul
REM Wait a bit
timeout /t 2 /nobreak >nul
REM Clean the project
cd /d "%~dp0"
dotnet clean
echo.
echo Deleting bin and obj folders...
if exist "CORP-MAUI\bin" rmdir /s /q "CORP-MAUI\bin"
if exist "CORP-MAUI\obj" rmdir /s /q "CORP-MAUI\obj"
echo.
echo Building project...
dotnet build --no-restore
echo.
echo Done!
pause