I have seen some threads about this that seem to be closed without a proper resolution, so i am creating a new topic about it.
I have a webapi build where I apply a custom config transform (I’ve turned off the default transforms). I am running across two cloud regions, so I have a staging.config and a staging-jw.config transform. One for each region.
When I run a deploy the transform step fails in both regions with the error:
Argument ‘debug’ did not match any attributes
When I look at the verbose logs it is immediately obvious that the transform is being run twice on the same file:
The relevant parts of the log:
Transforming ‘C:\Octopus\Work\20170926093859-377-127\staging\Web.config’ using ‘C:\Octopus\Work\20170926093859-377-127\staging\Web.Staging.config’.
… many lines …
Removed ‘debug’ attribute <-- works as designed
…More lines…
Done executing Replace
Transforming ‘C:\Octopus\Work\20170926093859-377-127\staging\bin\Web.config’ using ‘C:\Octopus\Work\20170926093859-377-127\staging\bin\Web.Staging.config’.
…many lines…
Argument ‘debug’ did not match any attributes
File C:\Octopus\Work\20170926093859-377-127\staging\bin\Web.config, line 136, position 6:
etc…
So my question is, why are these transforms being applied twice? Even if it was applying the default transform I wouldn’t expect the staging-jw operation to be applied twice (which it is) because it is neither a reserved name, nor a name that matches the environment. Any ideas?