Question

Using Web Deploy 3, is there a way to exclude certain assemblies which a project depends on?

The scenario is:

  1. Install the first package, platform-like assemblies.
  2. Then we install product-like assemblies

Yes, I know that that we can use –enableRule:DoNotDeleteRule flag to prevent the second package from overwriting the files.

I think it is just a bit dirty to have unwanted assemblies in the second ZIP package.

Any thoughts?

Was it helpful?

Solution

I used the following switch

-skip:objectname='filePath',absolutepath='logs\\.*\\someNameToExclude\.txt'

to skip certain files when deploying from commandline (I used sync verb)

Update As mentioned by msuhash - complete command-line reference can be found on technet (see skip setting).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top