diff options
Diffstat (limited to 'mcs/class/Microsoft.Build/Microsoft.Build.Construction/ProjectOtherwiseElement.cs')
-rw-r--r-- | mcs/class/Microsoft.Build/Microsoft.Build.Construction/ProjectOtherwiseElement.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mcs/class/Microsoft.Build/Microsoft.Build.Construction/ProjectOtherwiseElement.cs b/mcs/class/Microsoft.Build/Microsoft.Build.Construction/ProjectOtherwiseElement.cs index 9c25e50658..b8a2d6bec0 100644 --- a/mcs/class/Microsoft.Build/Microsoft.Build.Construction/ProjectOtherwiseElement.cs +++ b/mcs/class/Microsoft.Build/Microsoft.Build.Construction/ProjectOtherwiseElement.cs @@ -29,6 +29,7 @@ using System.Collections.Generic; using System; using System.Linq; +using System.Xml; using Microsoft.Build.Exceptions; using Microsoft.Build.Internal; @@ -62,9 +63,9 @@ namespace Microsoft.Build.Construction 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); @@ -79,7 +80,7 @@ namespace Microsoft.Build.Construction 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)); } } } |