Hello everyone,

(For people who don't know what I'm rambling about, please read the included
posts first).

Just a small update to let you know that I've submitted the bug to the
Microsoft Product Feedback Center. I was referred to this site by a
Microsoft employee. Stupid thing is that you can only give feedback about
newer Visual Studio versions (2005 beta 1 and up). I still posted it there,
because there are more postings that refer to older versions of Visual
Studio.

Anyway, please take the time to vote for the bug or add comments. It will
increase the likelyhood of someone at Microsoft actually looking at the damn
thing :^)

http://tinyurl.com/66c42

Thanks in advance,

Wilbert van Dolleweerd
--- Begin Message ---
Hello,

Don't know if the following is considered a bug in Nant. 

Take the following:

- A Visual Studio solution that includes a gif-file with the name
'spin&blk.gif' in its project.
- A Nant build that uses the <solution> task to compile the solution.

Nant will choke on the filename of the gif-file in the cs.project file with
the following error:

"
Error loading project
'C:\Temp\WindowsApplication1\WindowsApplication1\WindowsApplication1.csproj'
.
    An error occurred while parsing EntityName. Line 119, position 37.
"

This is because of the following line in the projectfile:

"
                <File
                    RelPath = "spin&blk.gif"
                    BuildAction = "Content"
                />
"

I know there are ways to circumvent this behaviour, but shouldn't Nant
handle this error more gracefully? 

Complete example that demonstrates this behaviour on
http://www.xs4all.nl/~getit/windowsapplication1.zip
(Visual Studio 2003 solution)

Opinions wanted! (Yes, I'm using the latest version of Nant :^)


Kind regards,

Wilbert van Dolleweerd



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

--- End Message ---
--- Begin Message ---
Although the Visual Studio project files look like XML, and will
usually parse with an XML parser, they're not actually legal XML
because of things like this. (It should've been obvious they weren't
being done with a real XML generator when you look at their layout...
no XML generator I've ever seen would create such ridiculously
white-space heavy elements.)

I think there are three options:

0. Don't use filenames that cause the problem.

1. Scan the file contents before parsing, and fix up errors like this,
THEN use the XML parser to parse the fixed-up version.

2. Write a new parser and avoid the XML parser altogether.

Option 0 isn't very good, but obviously is the easiest choice if it's
something you have control over. It's also coincidentally the only
option available to someone who isn't willing to get in and fix the
solution task.

Long term, option 1 seems best at first glance. While the document
isn't XML, it would take very little work to make it XML. Although it
will, on first glance seem kind of messy, it surely is a LOT less work
than actually writing a parser. In fact, option 1 seems to me like it
could be done in an afternoon by a properly motivated individual. ;)

- Brad

-- 
Brad Wilson
http://www.dotnetdevs.com/
http://dotnetguy.techieswithcats.com/

"Why do I think that people who live and breathe SQL are from a
distant alien culture?" - Stuart Celarier on the WTOT mailing list


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

--- End Message ---

Reply via email to