33 lines
902 B
Batchfile
33 lines
902 B
Batchfile
@echo off
|
||
REM JiaKong 配置编辑器编译脚本
|
||
REM 在 VS 中打开 WssBarrageService.csproj 编译即可
|
||
REM 或者双击此脚本(需要安装 Visual Studio 2022)
|
||
|
||
echo 正在查找 MSBuild...
|
||
|
||
REM VS 2022 MSBuild 路径
|
||
set MSBUILD="C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe"
|
||
|
||
if not exist %MSBUILD% (
|
||
set MSBUILD="C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Bin\MSBuild.exe"
|
||
)
|
||
|
||
if not exist %MSBUILD% (
|
||
echo 未找到 MSBuild.exe,请在 Visual Studio 中打开项目并编译。
|
||
pause
|
||
exit /b 1
|
||
)
|
||
|
||
echo 正在编译 WssBarrageService...
|
||
%MSBUILD% WssBarrageService.csproj /t:Build /p:Configuration=Debug /nologo
|
||
|
||
if %ERRORLEVEL% EQU 0 (
|
||
echo.
|
||
echo 编译成功!
|
||
echo 输出: bin\Debug\WssBarrageServer.exe
|
||
) else (
|
||
echo.
|
||
echo 编译失败,请检查错误信息。
|
||
)
|
||
pause
|