how to modify source with NAnt?
问题 I would like to modify the string in a .h file with NAnt before building the solution. There is a macro in .h file: #define SERVER_ADDRESS "www.customserver.net" and I would like to modify the string before deploying software so each build could be made for custom address by passing the address in command line. Does anyone know how this could be done? Thanks! 回答1: One could use the loadfile task to help with this. This task loads the given file into a property. What is really useful is when