简体   繁体   English

仅MsDeploy跳过根Web配置部署

[英]MsDeploy Skip Root Web Config deployment only

I am using Ms-deploy for Web Deployment. 我正在使用Ms-deploy进行Web部署。

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. 它不仅跳过根文件夹的Web配置,还跳过View文件夹web.config。

How can i overcome this issue. 我该如何克服这个问题。 I don't want to use Full path of web config. 我不想使用Web配置的完整路径。

在此处输入图片说明 Thanks in advance. 提前致谢。

您可以尝试在断言后面进行否定的查找:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM