using System.Collections.Generic;
using System;
using System.Linq;
+using System.Xml;
using Microsoft.Build.Exceptions;
using Microsoft.Build.Internal;
internal override string XmlName {
get { return "Otherwise"; }
}
- internal override ProjectElement LoadChildElement (string name)
+ internal override ProjectElement LoadChildElement (XmlReader reader)
{
- switch (name) {
+ switch (reader.LocalName) {
case "PropertyGroup":
var property = ContainingProject.CreatePropertyGroupElement ();
AppendChild (property);
return when;
default:
throw new InvalidProjectFileException (string.Format (
- "Child \"{0}\" is not a known node type.", name));
+ "Child \"{0}\" is not a known node type.", reader.LocalName));
}
}
}