NAnt – Checking to see if a file already exists.

Again, trying to find out how to do this today there seemed a lack of examples out there. I’ve got a web app which will fail if certain config files aren’t present.   I don’t want to automatically overwrite the existing files in the UAT or Production environments as they contain information relevant to that environment but the site…

NAnt – Changing CustomError setting in web.config

Couldn’t find any specific information on this one today when I was looking so hopefully this may help someone. It’s easy enough to do an xmlpoke when you’ve got well formed xml tags, but what do you do when the attribute is within a single tag? E.g. <customErrors mode=”RemoteOnly” />   The following code allows…