標籤:
不廢話,直接代碼:
D:cd D:\src\testproj\PrecompiledWebsvn revert ../ -Rsvn update ..rmdir BS /S /QC:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe ..\testproj.sln /p:DeployOnBuild=true /p:PublishProfile=..\BS\App_Data\PublishProfiles\publish.pubxml /m "C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6 Tools\aspnet_merge.exe" .\BS -o Site -a -rdel BS\bin\*.pdbcd ..node D:\node\node_modules\gulp-cli\bin\gulp.jscd PrecompiledWebD:\程式\saBuilder\{sa}Builder.exe %CD%\BS\bin\BaseObj.dll;BPMKernal.dll;CellBase.dll;Common.dll;Control.dll;FormKernal.dll;FusionChart.dll;GridExcel.dll;HZReport.dll;MyZip.dll;Portal.dll;Recruiting.dll;SiteAjax.dll;SiteBehind.dll;HZReport.dll;Site.dllset fn=%date:~0,10%set fn=old-%fn:/=%.zipdel %fn%cd BSzip -r -S ..\%fn% .\*copy ..\%fn% \\sdev\tempdel BS\web.configxcopy /C /E /Y .\*.* D:\inetpub\wwwroot\old
ASP.Net一鍵自動化更新代碼、編譯、合并dll、壓縮js、css、混淆dll、zip打包、發布到測試環境的bat批處理