I am using SlowCheetah for transforming my application config file. My problem is that some of the values that it replaces are SQL statements that have conditions like ... where x > 1
and the >
ends up being encoded as >
, \r\n
ends up as 

and so forth. If I send this sort of statement to the database will throw an error.
How do I prevent this? I googled already with no luck.
To "fix" this issue - if you can call it that - I ended up moving the section that contained the special characters that were being encoded by SlowCheetah to a different file, and set the configSource
attribute in the section to point to the new file. Basically, I did this:
<pluginsSection configSource="Configs\pluginsConfig.xml">
</pluginSection>
Now SlowCheetah transforms the App.config
file and the contents of pluginsConfig.xml
are not affected.