问题
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