Pavan Tiwari
Pavan Tiwari

Reputation: 3187

MsDeploy Skip Root Web Config deployment only

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.

enter image description here Thanks in advance.

Upvotes: 1

Views: 542

Answers (1)

chief7
chief7

Reputation: 14383

You could try a negative lookbehind assertion:

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

Upvotes: 1

Related Questions