XmlPreprocess released
Now here's another very pretty tool that can use an introduction. I'm talking about the XmlPreprocessor which has just been released. It's a command line driven utility which will alter, for example, your web.config or app.config based on paramters and some conditions.
The the following example:
<configuration>
<system.web>
<!-- ifdef ${production} -->
<!-- <compilation defaultLanguage="c#" debug="false"/> -->
<!-- else -->
<compilation defaultLanguage="c#" debug="true"/>
<!-- endif -->
</system.web>
</configuration>
It will produce the following config file upon production release:
<configuration>
<system.web>
<compilation defaultLanguage="c#" debug="false"/>
</system.web>
</configuration>
You can insert the tool inside your built process or include it in an MSI script. Very powerfull and probably what a lot of projects need. There's some discussion going on here and a reply here, but I think that it's a nice 'hack'.
Get the tool here : http://xmlpreprocess.sourceforge.net/