Dennis van der Stelt

If you have one problem and use cache to solve it, you now have two problems.

Community

Email Notifications

News

  • Addicted to Refactor! Pro

I read...

I Use...

Tags

Recent Posts

Archives

Blog Subscription Form

  • Email Notifications
    Go

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/

Comments

DoloresRhodes said:

I propose not to wait until you get big sum of money to buy goods! You should get the <a href="http://bestfinance-blog.com">loan</a> or just sba loan and feel fine

# July 30, 2011 12:01 PM
Leave a Comment

(required) 

(required) 

(optional)

(required) 


Please add 5 and 1 and type the answer here: