diff options
author | Jo Shields <directhex@apebox.org> | 2014-02-19 22:12:43 +0000 |
---|---|---|
committer | Jo Shields <directhex@apebox.org> | 2014-02-19 22:12:43 +0000 |
commit | 9972bf87b4f27d9c8f358ef8414ac1ab957a2f0f (patch) | |
tree | 5bb230c1d698659115f918e243c1d4b0aa4c7f51 /mcs/class/Microsoft.Build/Microsoft.Build.Construction/ProjectUsingTaskElement.cs | |
parent | d0a215f5626219ff7927f576588a777e5331c7be (diff) | |
download | mono-upstream/3.2.8+dfsg.tar.gz |
Imported Upstream version 3.2.8+dfsgupstream/3.2.8+dfsg
Diffstat (limited to 'mcs/class/Microsoft.Build/Microsoft.Build.Construction/ProjectUsingTaskElement.cs')
-rw-r--r-- | mcs/class/Microsoft.Build/Microsoft.Build.Construction/ProjectUsingTaskElement.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mcs/class/Microsoft.Build/Microsoft.Build.Construction/ProjectUsingTaskElement.cs b/mcs/class/Microsoft.Build/Microsoft.Build.Construction/ProjectUsingTaskElement.cs index 83a5d60749..52a1dad01b 100644 --- a/mcs/class/Microsoft.Build/Microsoft.Build.Construction/ProjectUsingTaskElement.cs +++ b/mcs/class/Microsoft.Build/Microsoft.Build.Construction/ProjectUsingTaskElement.cs @@ -27,6 +27,7 @@ // using System; +using System.Xml; using Microsoft.Build.Exceptions; namespace Microsoft.Build.Construction @@ -107,16 +108,16 @@ namespace Microsoft.Build.Construction internal override string XmlName { get { return "UsingTask"; } } - internal override ProjectElement LoadChildElement (string name) + internal override ProjectElement LoadChildElement (XmlReader reader) { - switch (name) { + switch (reader.LocalName) { case "ParameterGroup": return AddParameterGroup (); case "Task": return AddUsingTaskBody (null, null); 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)); } } } |