Share

NAnt - A .NET Build Tool

Tracker: Bugs

6 Schema and code do not match for AssemblyInfoTask element - ID: 1076620
Last Update: Comment added ( drieseng )

Hi,

looking at the 0.85-rc1 schema I can see that
AssemblyInfoTask either has incorrect definition, or the
code that is supposed to handle it is incorrect.
More specifically, schema says that this task can have
one or more of "attributes" elements, where "attributes"
is actually of type "AssemblyAttribute" (note singular-
plural mismatch) from which it follows that for each
attribute you want to add you need to have
one "attributes" element, but code parsing the .build file
disagrees and wants single "attributes" element with
many "attribute" elements inside.

If the code is right, then the schema is not, and vice
versa. Same goes with "imports" and
probably "references" element as well. If I stick to what
is intuitive (one "imports" many "import" child nodes and
analogous for "references" and "attributes") NAnt works
fine, but my XML editor complains that the document is
not correct according to the schema, which is annoying.

Thanks and keep up the good work,

Draza


Drazen Dotlic ( rutavibaja ) - 2004-12-01 10:04

6

Closed

Fixed

Gert Driesen

Core

0.85

Public


Comment ( 1 )

Date: 2004-12-22 20:57
Sender: driesengProject AdminAccepting Donations

Logged In: YES
user_id=707851

This issue is now fixed in CVS, and will be available in the
next nightly build.



Attached File

No Files Currently Attached

Changes ( 6 )

Field Old Value Date By
status_id Open 2004-12-22 20:57 drieseng
resolution_id None 2004-12-22 20:57 drieseng
assigned_to nobody 2004-12-22 20:57 drieseng
close_date - 2004-12-22 20:57 drieseng
priority 5 2004-12-01 10:05 rutavibaja
summary Schema and code do not match 2004-12-01 10:05 rutavibaja