Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report for Bug 31174 on
GitHub or Developer Community if you have new
information to add and do not yet see a matching new report.
If the latest results still closely match this report, you can use the
In special cases on GitHub you might also want the comments:
GitHub Markdown with public comments
I have an xbuild file which uses the Exec task to invoke a command line tool. The tool takes a regular expression as a parameter, which in my case contains a backslash (\) character. It seems that xbuild converts all backslashes into forward slashes, as they usually represent a directory separation character, but in this specific case I need it passed without conversion. I have tried escaping (\\) and encoding () but neither worked.
Looking at the relevant code, it seems like conversion is done unconditionally:
Encoding would be the preferred solution for XML, but it seems that is broken. That issues has already be reported:
Using Mono 4.0.2 on CentOS 6
XML entity escapting was working in Mono 4.0.1 but the currently nightly build of Mono 4.3.0 (as of 23/06/15) is no longer working as described in this bug (and bug 6759).
In my case %22 is no longer being converted to a double quote, which is being used to escape the possibility of spaces in paths.
Correct interpretation with Mono 4.0.1: https://travis-ci.org/experiandataquality/electronicupdates/builds/68014174#L2094
Incorrect interpretation with Mono 4.3.0: https://travis-ci.org/experiandataquality/electronicupdates/builds/68027929#L1004