Ok so you have a bespoke process, i.e. this isn't part of project compilation.
you could have a 2nd copy of the file with the right content and then copy that, or you could call a task to edit the file content before doing it. Again, you have options, like doing regex replace or xml editing.
See: http://www.msbuildextensionpack.com/help/4.0.7.0/?topic=html/f8c545f9-d58f-640e-3fce-b10aa158ca95.htm for replace and http://www.msbuildextensionpack.com/help/4.0.7.0/?topic=html/4009fe8c-73c1-154f-ee8c-e9fda7f5fd96.htm for xml
Mike
you could have a 2nd copy of the file with the right content and then copy that, or you could call a task to edit the file content before doing it. Again, you have options, like doing regex replace or xml editing.
See: http://www.msbuildextensionpack.com/help/4.0.7.0/?topic=html/f8c545f9-d58f-640e-3fce-b10aa158ca95.htm for replace and http://www.msbuildextensionpack.com/help/4.0.7.0/?topic=html/4009fe8c-73c1-154f-ee8c-e9fda7f5fd96.htm for xml
Mike