@echo off
set slnName=null
for %%I in (*.sln) do set slnName=%%I
echo 开始编译 %slnName%...
call "C:\Program Files (x86)\VC\vcvarsall.bat" x86
MSBuild %slnName% /t:Rebuild /P:WarningLevel=2;Configuration=debug
echo 编译完成
pause
有代码我怎么封装这个代码,