Is there any way to put conditions in MSBuild-extension? More specifically, I need to replace some string in config file (using <File.Replace />
), which may look like '/service.svc' '{some characters here}/service.svc'. How can you make it, using conditions or regexp?
P.S. I'm yet to determine version that is used, but believe it to be for .net 3.5, as this framework version is used.
I'm using XmlPreprocess tool for config files manipulation. I'm using one mapping file for multiple environments. You can edit mapping file by Excel. It is very easy to use.
You can call it from MSBuild script using Exec task.