slow-cheetah icon indicating copy to clipboard operation
slow-cheetah copied to clipboard

Transforming url rewrite rules will overwrite my base web.config

Open Oxymoron290 opened this issue 6 years ago • 1 comments

My base web.config does not have the node in the <system.webServer> node. My transform for release has the follow: <system.webServer> <rewrite xdt:Transform="Insert"> <rules> <rule name="redirectHttps" patternSyntax="Wildcard" stopProcessing="true"> <match url="*" /> <conditions logicalGrouping="MatchAny"> <add input="{HTTPS}" pattern="off" /> </conditions> <action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Found" /> </rule> </rules> </rewrite> </system.webServer>

when I build in release, my web.config has the node added. This breaks the debug build.

Oxymoron290 avatar Aug 13 '18 21:08 Oxymoron290

Does building you project always overwrite your base web.config? If that's the case, can you provide some steps to reproduce this from a new project? A diagnostic build would also work, so I can see if the SlowCheetah targets are doing anything weird (Run msbuild /v:diag from the command line).

SlowCheetah shouldn't be messing with the base web.config file, but it may be possible that the latest changes have caused it to incorrectly pick it up for transformation.

davilimap avatar Sep 04 '18 18:09 davilimap