문제

. .

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!

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top