Re: xbuild: Including backslashes that shouldn't get converted to forward slashes

"Andres G. Aragoneses" <[email protected]>
Newsgroups gmane.comp.gnome.mono.general
Message-ID <[email protected]>
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 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.
>>
>> How can this be achieved?
>
> It's probably an xbuild bug, as it should only try to convert the first
> element, not the arguments.

I take that back, since the arguments can contain file paths too. I 
guess this is a hard problem to solve. Maybe the \ -> / conversion 
should only live in the IO layer, not in the xbuild layer.


_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.