mwrock/RequestReduce — Issue #132: NuGet installer can generate an invalid web.config
Author: akcoder
Created: 2012-02-06 19:03:52+00:00
State: open

Granted what I'm doing is not in the 99% case, but we have a need to prevent a child app from inheriting the parents config. The documented way of doing this is:

`......`

However when RR creates its entries in the web.config file, it creates new nodes for system.web and system.webServer off the configuration node. This leads to an invalid config file.

Expected behavior:
Detect if a `...` node exists and place the values in there, otherwise fall back to using the `...` node.

Having looked at the NuGet docs for config transform, it doesn't look like there is a lot you can do to detect the either/or situation. Now if NuGet was using the XML Document Transformer stuff, that would be a different issue.