cd /d ../../ echo 'publish Client' cd /d Library\Sers\Sers.CL\Test\CommunicationManage\CmClient dotnet build --configuration Release dotnet publish --configuration Release --output ..\..\..\..\..\..\Doc\Publish\CLѹ²â\CmClient @if errorlevel 1 (echo . & echo . & echo ³ö´í£¬ÇëÅŲ飡& pause) cd /d ../../../../../../ echo 'publish Client' cd /d Library\Sers\Sers.CL\Test\CommunicationManage\CmServer dotnet build --configuration Release dotnet publish --configuration Release --output ..\..\..\..\..\..\Doc\Publish\CLѹ²â\CmServer @if errorlevel 1 (echo . & echo . & echo ³ö´í£¬ÇëÅŲ飡& pause) cd /d ../../../../../../ cd /d Doc\Publish @echo "copy from PublishFile" xcopy "..\PublishFile\CLѹ²â" "CLѹ²â" /e /i /r /y echo 'publish CLѹ²â succeed£¡' echo 'publish CLѹ²â succeed£¡' echo 'publish CLѹ²â succeed£¡'