sayedihashimi / slow-cheetah

XML Transforms for app.config and other XML files
Other
242 stars 51 forks source link

MSBuild Transforms (XDT transform fails on > in source attribute) #20

Closed ligaz closed 7 years ago

ligaz commented 12 years ago

I have a MSBuild file that contains a couple of MSBuild transformations. I want to transform this file with an XML transformation, but the problem is that the transformation fails, because an attribute value contains a greater than symbol > (coming from the MSBuild transformation ->). Also the thrown exception is ambiguous: System.UriFormatException: Invalid URI. If I XML encode the symbol everything works - but it should work out of the box in the first place.

Do you plan to open-source the code for the MSBuild tasks as well (SlowCheetah.Tasks.dll)?

sayedihashimi commented 12 years ago

Can you post a sample XML file somewhere so that I can take a look? Regarding the task source, I am working on that but no news to report yet.

ligaz commented 12 years ago

You can look into the example provided in the MSDN page I have linked to. Also you can try to add greater than symbol (>) in an attribute value in a simple web.config file and try to preview (via the VS extension) the Web.Release.config transformation for example.

sayedihashimi commented 12 years ago

Hi ligaz, I have looked into this and this is an issue with the underlying XDT engine itself. I have filed a bug for this at https://connect.microsoft.com/VisualStudio/Feedback/details/753804. Note: I work on this team so I can help to make sure that this stays on the radar but I am not sure when we could ship this fix. I will keep this issue open for now so that we continue to track this here as well. Thanks for reporting the issue.

davilimap commented 7 years ago

The underlying bug on XDT is fixed, so this is also fixed. If the problem still exists, reopen the issue.