Compile the project using msbuild

echo off
set codeUrl=D:\svn\oppo_mis\OCSS_NEW\Branches\ProjectCode20190909\source
set publishUrl=D:\Portal\

cd / D%% codeUrl
:: Build Solution (dll)
msbuild RekTec.Portal.Ocss.sln
:: bin will be generated in the dll published to publish directories bin
:: for / r% codeUrl% \ bin %% i in (dir "* Icsm *" ; "* Crm.Interface *"; "* Crm.Entity *") do copy %% i% publishUrl% \ bin

pause

Guess you like

Origin www.cnblogs.com/dinggf/p/11576508.html