D:删除构建文件,增加调试脚本

This commit is contained in:
jimmy committed 2025-12-29 10:08:26 +08:00
1 parent 3b89b2d722
commit d133bacf55
40 files changed
+1180 -1066

No files matched your search

+94
View File
@@ -0,0 +1,94 @@
@echo off
REM ========================================
REM 开发环境快速启动脚本
REM ========================================
REM 切换到脚本目录
cd /d "%~dp0"
:menu
cls
echo.
echo ==========================================
echo Sharp-Basic 开发工具菜单
echo ==========================================
echo.
echo 当前目录: %CD%
echo.
echo 常用操作:
echo [1] 清理项目 (clean)
echo [2] 还原 NuGet 包 (restore)
echo [3] 构建项目 (build)
echo [4] 重新构建 (clean + restore + build)
echo [5] 运行测试 (test)
echo [6] 运行演示应用 (run-demo)
echo.
echo 高级操作:
echo [7] 格式化代码 (format)
echo [8] 深度清理 (PowerShell - 包含缓存清理)
echo.
echo [0] 退出
echo.
echo ==========================================
echo.
set /p choice="请输入选项 (0-8): "
if "%choice%"=="1" goto clean
if "%choice%"=="2" goto restore
if "%choice%"=="3" goto build
if "%choice%"=="4" goto rebuild
if "%choice%"=="5" goto test
if "%choice%"=="6" goto run
if "%choice%"=="7" goto format
if "%choice%"=="8" goto deep
if "%choice%"=="0" goto exit
echo.
echo 无效选项!请输入 0-8 之间的数字
timeout /t 2 >nul
goto menu
:clean
cls
call clean.bat
goto menu
:restore
cls
call restore.bat
goto menu
:build
cls
call build.bat
goto menu
:rebuild
cls
call rebuild.bat
goto menu
:test
cls
call test.bat
goto menu
:run
cls
call run-demo.bat
goto menu
:format
cls
call format.bat
goto menu
:deep
cls
powershell -ExecutionPolicy Bypass -File clean-deep.ps1
pause
goto menu
:exit
exit