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:

<!– ifdef ${production} –> <!– <compilation defaultLanguage=”c#” debug=”false”/> –> <!– else –> <!– endif –>

It will produce the following config file upon production release:

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/