Bugs item #1770152, was opened at 2007-08-08 18:23
Message generated for change (Comment added) made by verbedr
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=474851&aid=1770152&group_id=54790

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Tasks
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Serge Baltic (hypersw)
Assigned to: Nobody/Anonymous (nobody)
Summary: MSBuild Task: Property Values Must Be Escaped

Initial Comment:
If a property value ends with a backslash, it does not get escaped and goes 
into the msbuild command line “as is”. As the property value is enclosed in 
quotes, the closing quote with a backslash is treated as an escaped quote, and 
the next command-line argument is glued with the property value.

Example:

… <property name="OutDir" value="t:\bin\" /> …
Suppose the command-line like "/p:OutDir=t:\bin\" /p:Something=Else
in this case, the OutDir's value is “t:\bin" /p:Something=Else”, and the 
“Something” property is not set at all.

----------------------------------------------------------------------

Comment By: dries (verbedr)
Date: 2008-12-09 21:51

Message:
The problem is that the msbuild task surround the property name and value
with quotes while this is not needed. What should happen is escaping the
space with %20 and the same should probably happen with the equals sign

----------------------------------------------------------------------

Comment By: Gerke Geurts (ggeurts)
Date: 2008-01-28 17:48

Message:
Logged In: YES 
user_id=707583
Originator: NO

Temporary workaround is to add a space at the end of the property value,
e.g. <property name="OutDir" value="t:\bin\ " />

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=474851&aid=1770152&group_id=54790

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
NAntContrib-Developer mailing list
NAntContrib-Developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nantcontrib-developer

Reply via email to