Reputation: 3187
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.
Upvotes: 1
Views: 542
Reputation: 14383
You could try a negative lookbehind assertion:
absolutePath="(?<!Views)\\Web\.config"
Upvotes: 1