标签:
不废话,直接代码:
D: cd D:\src\testproj\PrecompiledWeb svn revert ../ -R svn update .. rmdir BS /S /Q C:\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 -r del BS\bin\*.pdb cd .. node D:\node\node_modules\gulp-cli\bin\gulp.js cd PrecompiledWeb D:\程序\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.dll set fn=%date:~0,10% set fn=old-%fn:/=%.zip del %fn% cd BS zip -r -S ..\%fn% .\* copy ..\%fn% \\sdev\tempdel BS\web.config xcopy /C /E /Y .\*.* D:\inetpub\wwwroot\old
ASP.Net一键自动化更新代码、编译、合并dll、压缩js、css、混淆dll、zip打包、发布到测试环境的bat批处理
标签:
原文地址:http://www.cnblogs.com/hz-blog/p/asp_net-update-build-merge-uglify-zip-deploy.html