I wanted to replace some strings in files using my deployment MSbuild script.
I've noticed that Project has RegexReplace task.
But when I've looked in documentation
(By the way,, not only from download)
I've realized that the task is applicable for strings(e.g file names) not to content within a file.
Almost accidently in s i've found a reference to FileUpdate task, that support Regex and does content replacements within a file.
The following examle (from downloaded help) search for a version number and update the revision.
Note: don't forget to insert in to your project
.
You may require to change MSBuildCommunityTasksPath if it is not in current directory.
