Forgot this in changelog
[mono.git] / mcs / class / Microsoft.Build.Engine / Microsoft.Build.BuildEngine / TargetCollection.cs
index 92d397ef479211a29ce02f400f6e9d65519c934f..8089806ef43a6df9cb6bd56f03658e40a68db2dd 100644 (file)
@@ -36,12 +36,12 @@ namespace Microsoft.Build.BuildEngine {
        public class TargetCollection : ICollection, IEnumerable {
                
                Dictionary <string, Target>     targetsByName;
-               Project                         parentProject;
+               //Project                               parentProject;
        
                internal TargetCollection (Project project)
                {
-                       this.targetsByName = new Dictionary <string, Target> ();
-                       this.parentProject = project;
+                       this.targetsByName = new Dictionary <string, Target> (StringComparer.InvariantCultureIgnoreCase);
+                       //this.parentProject = project;
                }
 
                // This must create a new xml element and stuff.
@@ -68,9 +68,8 @@ namespace Microsoft.Build.BuildEngine {
 
                public IEnumerator GetEnumerator ()
                {
-                       foreach (KeyValuePair <string, Target> kvp in targetsByName) {
-                               yield return kvp.Key;
-                       }
+                       foreach (KeyValuePair <string, Target> kvp in targetsByName)
+                               yield return kvp.Value;
                }
 
                public void RemoveTarget (Target targetToRemove)