Re: [Mono-list] xbuild: Including backslashes that shouldn't get converted to forward slashes

2015-06-18 Thread Matt Zinkevicius
Sadly, after looking at the Mono codebase more, It looks that there is no way to support passing backslashes through without conversion. I'm surprised as it's not that uncommon of a need. I've opened a defect: https://bugzilla.xamarin.com/show_bug.cgi?id=31174 Related defect:

[Mono-list] xbuild: Including backslashes that shouldn't get converted to forward slashes

2015-06-15 Thread Matt Zinkevicius
I have an msbuild/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

Re: [Mono-list] xbuild: Including backslashes that shouldn't get converted to forward slashes

2015-06-15 Thread Andres G. Aragoneses
On 15/06/15 19:34, Matt Zinkevicius wrote: I have an msbuild/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

Re: [Mono-list] xbuild: Including backslashes that shouldn't get converted to forward slashes

2015-06-15 Thread Andres G. Aragoneses
On 15/06/15 20:42, Andres G. Aragoneses wrote: On 15/06/15 19:34, Matt Zinkevicius wrote: I have an msbuild/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

Re: [Mono-list] xbuild: Including backslashes that shouldn't get converted to forward slashes

2015-06-15 Thread Matt Zinkevicius
You definitely want xbuild to convert them as paths in the majority of cases, but you need a way to override that behavior for exceptional circumstances. This done in most languages through escaping of some sort, I'm just not sure how to express that here. --Z From: knocte [via Mono]