Search code examples
msdeployskip

msdeploy skip for exact-name folders


. .

Here's the deal: I'm trying to use msdeploy to upload files. I have a folder in my root called Search that I want it to skip.

So, I wrote a skip directive like this:

-skip:objectName=dirPath,absolutePath="Search"

The good news: it skips the Search folder like I want it to.

The bad news: it also skips any folder with "Search" in the name (example: "Research"), which I don't want it to do. (Also, the "Research" folder being skipped is not off the web root, which raises a concern about controlling what folder locations are skipped.)

I tried a couple of variations, including these:

-skip:objectName=dirPath,absolutePath="\Search"
-skip:Directory="Search"
-skip:Directory="\Search"

No dice. It's still skipping anything named "Research."

I tried looking up msdeploy syntax, and couldn't find anything that helps me.

Any thoughts from the peanut gallery?

Thanks!


Solution

  • Got it figured out. For the benefit for anyone else who might be looking for an answer to this . . .

    I didn't realize that I was dealing with regular expressions. I rewrote "Search" as "\\Search$"