Raise error when project item has empty Include attribute or lacks it.
[mono.git] / mcs / class / Microsoft.Build / Microsoft.Build.Construction / ProjectItemGroupElement.cs
index 5cece6419c60232292427113b4fbd87ba98c605b..f0bce4361b070c4a43aae7f806292d123811568a 100644 (file)
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
+using System;
 using System.Collections.Generic;
 using System.Linq;
+using System.Xml;
 using Microsoft.Build.Internal;
-using System;
 
 namespace Microsoft.Build.Construction
 {
@@ -84,9 +85,9 @@ namespace Microsoft.Build.Construction
                         get { return "ItemGroup"; }
                 }
 
-                internal override ProjectElement LoadChildElement (string name)
+                internal override ProjectElement LoadChildElement (XmlReader reader)
                 {
-                        var item = ContainingProject.CreateItemElement (name);
+                        var item = ContainingProject.CreateItemElement (reader.LocalName);
                         AppendChild (item);
                         return item;
                 }