Problem with CreateProperty

If I create a property like this:

<CreateProperty "Value=" something">
<Output TaskParameter="Value" PropertyName="MyProperty"/>
</CreateProperty>

MyProperty will get "something" instead of " something", the space is gone.
Is this expected or a bug?

Regards,
Gustavo Guerra

[636 byte] By [ovatsus] at [2007-12-17]
# 1
Yes you are right. The property strings are getting trimmed today in this scenario. Are you blocked on a real need to have whitespace at the beginning or the end of the string?

If you want spaces at the beginning or the end, you can use %20 in the attribute value to escape it. Granted it's not ideal, but I'll find out more as to whether this was intended behavior or actually a bug.

Thanks.
Faisal Mohamood

FaisalMohamoodMSFT at 2007-9-9 > top of Msdn Tech,Visual Studio,Visual Studio MSBuild...
# 2

Well, I can workaround not having the need for the space at start of the string, or using %20, but I just wasn't expecting it and had a bug because of it

Best regards,
Gustavo Guerra

ovatsus at 2007-9-9 > top of Msdn Tech,Visual Studio,Visual Studio MSBuild...
# 3

Understandable - sorry about not working as expected in this case.

I'll find out more as to whether there was any history on this particular issue - otherwise we'll track it as a bug for our next release.

Thanks.
-faisal

FaisalMohamoodMSFT at 2007-9-9 > top of Msdn Tech,Visual Studio,Visual Studio MSBuild...
# 4
Are spaces ok in the middle of the string?
rpreston at 2007-9-9 > top of Msdn Tech,Visual Studio,Visual Studio MSBuild...

Visual Studio

Site Classified