仅MsDeploy跳过根Web配置部署 [英] MsDeploy Skip Root Web Config deployment only

查看:115
本文介绍了仅MsDeploy跳过根Web配置部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Ms-deploy进行Web部署.

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$"

它不仅跳过根文件夹的Web配置,而且还跳过查看文件夹web.config.

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

我该如何克服这个问题. 我不想使用Web配置的完整路径.

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

预先感谢.

推荐答案

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

You could try a negative lookbehind assertion:

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

这篇关于仅MsDeploy跳过根Web配置部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆