[Mono-list] xbuild: Including backslashes that shouldn't get converted to forward slashes
Matt Zinkevicius
matt.zinkevicius at hp.com
Mon Jun 15 18:43:04 UTC 2015
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] [mailto:ml-node+s1490590n4666199h66 at n4.nabble.com]
Sent: Monday, June 15, 2015 12:36 PM
To: Zinkevicius, Matt
Subject: Re: xbuild: Including backslashes that shouldn't get converted to forward slashes
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 - [hidden email]</user/SendEmail.jtp?type=node&node=4666199&i=0>
http://lists.ximian.com/mailman/listinfo/mono-list
________________________________
If you reply to this email, your message will be added to the discussion below:
http://mono.1490590.n4.nabble.com/xbuild-Including-backslashes-that-shouldn-t-get-converted-to-forward-slashes-tp4666197p4666199.html
To unsubscribe from xbuild: Including backslashes that shouldn't get converted to forward slashes, click here<http://mono.1490590.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4666197&code=bWF0dC56aW5rZXZpY2l1c0BocC5jb218NDY2NjE5N3w0OTQ0Njg4ODc=>.
NAML<http://mono.1490590.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
--
View this message in context: http://mono.1490590.n4.nabble.com/xbuild-Including-backslashes-that-shouldn-t-get-converted-to-forward-slashes-tp4666197p4666200.html
Sent from the Mono - General mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20150615/79da8ca0/attachment.html>
More information about the Mono-list
mailing list