Merge pull request #4540 from kumpera/android-changes-part1
[mono.git] / mcs / class / Microsoft.Build / Microsoft.Build.Construction / ProjectElementContainer.cs
index 6f1c1ab99b7508c0eb6833353eee92f3a06af746..1f1619bbd53cf379f098d4648c0cd37f256fc06f 100644 (file)
@@ -128,10 +128,10 @@ namespace Microsoft.Build.Construction
                 {
                         reader.Read ();
                         reader.MoveToContent ();
+                        FillLocation (reader);
                         if (reader.LocalName != XmlName || reader.NamespaceURI != MSBuildNamespace)
                                 throw CreateError (reader, string.Format ("Unexpected XML {0} \"{1}\" in namespace \"{2}\" appeared, while \"{3}\" in namespace \"{4}\" is expected.",
                                                 reader.NodeType, reader.LocalName, reader.NamespaceURI, XmlName, MSBuildNamespace), -1);
-                        FillLocation (reader);
                         while (reader.MoveToNextAttribute ()) {
                                 LoadAttribute (reader.Name, reader.Value);
                         }