MsDeploy Skip Root Web Config deployment only

淺唱寂寞╮ 提交于 2019-12-13 06:44:36

问题


I am using Ms-deploy for Web Deployment.

Below command i am using for this

msdeploy -verb:sync -source:contentPath="${p:resource/work.dir}${p:component.name}\%BinariesMode%%DirectoryOffset%" -dest:contentPath=%1,ComputerName=localhost -enableLink:AppPoolExtension -enableRule:Donotdeleterule -skip:objectName=filePath,absolutePath="\\Web\.config$"

It not only skip the web config of root folder but also of View folder web.config also.

How can i overcome this issue. I don't want to use Full path of web config.

Thanks in advance.


回答1:


You could try a negative lookbehind assertion:

absolutePath="(?<!Views)\\Web\.config"


来源:https://stackoverflow.com/questions/35919879/msdeploy-skip-root-web-config-deployment-only

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!