aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Prebuild/src/Core
diff options
context:
space:
mode:
Diffstat (limited to 'Prebuild/src/Core')
-rw-r--r--Prebuild/src/Core/Nodes/ConfigurationNode.cs14
-rw-r--r--Prebuild/src/Core/Nodes/FilesNode.cs3
-rw-r--r--Prebuild/src/Core/Nodes/ProjectNode.cs28
-rw-r--r--Prebuild/src/Core/Nodes/ReferenceNode.cs14
-rw-r--r--Prebuild/src/Core/Nodes/ReferencePathNode.cs14
-rw-r--r--Prebuild/src/Core/Nodes/SolutionNode.cs10
6 files changed, 67 insertions, 16 deletions
diff --git a/Prebuild/src/Core/Nodes/ConfigurationNode.cs b/Prebuild/src/Core/Nodes/ConfigurationNode.cs
index e1488a7..390794f 100644
--- a/Prebuild/src/Core/Nodes/ConfigurationNode.cs
+++ b/Prebuild/src/Core/Nodes/ConfigurationNode.cs
@@ -45,7 +45,7 @@ namespace Prebuild.Core.Nodes
45 /// 45 ///
46 /// </summary> 46 /// </summary>
47 [DataNode("Configuration")] 47 [DataNode("Configuration")]
48 public class ConfigurationNode : DataNode, ICloneable 48 public class ConfigurationNode : DataNode, ICloneable, IComparable
49 { 49 {
50 #region Fields 50 #region Fields
51 51
@@ -173,5 +173,15 @@ namespace Prebuild.Core.Nodes
173 } 173 }
174 174
175 #endregion 175 #endregion
176 } 176
177 #region IComparable Members
178
179 public int CompareTo(object obj)
180 {
181 ConfigurationNode that = (ConfigurationNode) obj;
182 return this.m_Name.CompareTo(that.m_Name);
183 }
184
185 #endregion
186 }
177} 187}
diff --git a/Prebuild/src/Core/Nodes/FilesNode.cs b/Prebuild/src/Core/Nodes/FilesNode.cs
index 442a45f..d31307b 100644
--- a/Prebuild/src/Core/Nodes/FilesNode.cs
+++ b/Prebuild/src/Core/Nodes/FilesNode.cs
@@ -218,5 +218,6 @@ namespace Prebuild.Core.Nodes
218 } 218 }
219 219
220 #endregion 220 #endregion
221 } 221
222 }
222} 223}
diff --git a/Prebuild/src/Core/Nodes/ProjectNode.cs b/Prebuild/src/Core/Nodes/ProjectNode.cs
index 84d9f5d..c56dacc 100644
--- a/Prebuild/src/Core/Nodes/ProjectNode.cs
+++ b/Prebuild/src/Core/Nodes/ProjectNode.cs
@@ -81,7 +81,7 @@ namespace Prebuild.Core.Nodes
81 /// 81 ///
82 /// </summary> 82 /// </summary>
83 [DataNode("Project")] 83 [DataNode("Project")]
84 public class ProjectNode : DataNode 84 public class ProjectNode : DataNode, IComparable
85 { 85 {
86 #region Fields 86 #region Fields
87 87
@@ -290,7 +290,9 @@ namespace Prebuild.Core.Nodes
290 { 290 {
291 get 291 get
292 { 292 {
293 return m_Configurations.Values; 293 ArrayList tmp = new ArrayList( ConfigurationsTable.Values);
294 tmp.Sort();
295 return tmp;
294 } 296 }
295 } 297 }
296 298
@@ -314,8 +316,10 @@ namespace Prebuild.Core.Nodes
314 { 316 {
315 get 317 get
316 { 318 {
317 return m_ReferencePaths; 319 ArrayList tmp = new ArrayList(m_ReferencePaths);
318 } 320 tmp.Sort();
321 return tmp;
322 }
319 } 323 }
320 324
321 /// <summary> 325 /// <summary>
@@ -326,7 +330,9 @@ namespace Prebuild.Core.Nodes
326 { 330 {
327 get 331 get
328 { 332 {
329 return m_References; 333 ArrayList tmp = new ArrayList(m_References);
334 tmp.Sort();
335 return tmp;
330 } 336 }
331 } 337 }
332 338
@@ -490,5 +496,15 @@ namespace Prebuild.Core.Nodes
490 496
491 497
492 #endregion 498 #endregion
493 } 499
500 #region IComparable Members
501
502 public int CompareTo(object obj)
503 {
504 ProjectNode that = (ProjectNode)obj;
505 return this.m_Name.CompareTo(that.m_Name);
506 }
507
508 #endregion
509 }
494} 510}
diff --git a/Prebuild/src/Core/Nodes/ReferenceNode.cs b/Prebuild/src/Core/Nodes/ReferenceNode.cs
index beb50dc..a2880c0 100644
--- a/Prebuild/src/Core/Nodes/ReferenceNode.cs
+++ b/Prebuild/src/Core/Nodes/ReferenceNode.cs
@@ -45,7 +45,7 @@ namespace Prebuild.Core.Nodes
45 /// 45 ///
46 /// </summary> 46 /// </summary>
47 [DataNode("Reference")] 47 [DataNode("Reference")]
48 public class ReferenceNode : DataNode 48 public class ReferenceNode : DataNode, IComparable
49 { 49 {
50 #region Fields 50 #region Fields
51 51
@@ -139,5 +139,15 @@ namespace Prebuild.Core.Nodes
139 } 139 }
140 140
141 #endregion 141 #endregion
142 } 142
143 #region IComparable Members
144
145 public int CompareTo(object obj)
146 {
147 ReferenceNode that = (ReferenceNode)obj;
148 return this.m_Name.CompareTo(that.m_Name);
149 }
150
151 #endregion
152 }
143} 153}
diff --git a/Prebuild/src/Core/Nodes/ReferencePathNode.cs b/Prebuild/src/Core/Nodes/ReferencePathNode.cs
index 5d98dda..0563c1b 100644
--- a/Prebuild/src/Core/Nodes/ReferencePathNode.cs
+++ b/Prebuild/src/Core/Nodes/ReferencePathNode.cs
@@ -47,7 +47,7 @@ namespace Prebuild.Core.Nodes
47 /// 47 ///
48 /// </summary> 48 /// </summary>
49 [DataNode("ReferencePath")] 49 [DataNode("ReferencePath")]
50 public class ReferencePathNode : DataNode 50 public class ReferencePathNode : DataNode, IComparable
51 { 51 {
52 #region Fields 52 #region Fields
53 53
@@ -94,5 +94,15 @@ namespace Prebuild.Core.Nodes
94 } 94 }
95 95
96 #endregion 96 #endregion
97 } 97
98 #region IComparable Members
99
100 public int CompareTo(object obj)
101 {
102 ReferencePathNode that = (ReferencePathNode)obj;
103 return this.m_Path.CompareTo(that.m_Path);
104 }
105
106 #endregion
107 }
98} 108}
diff --git a/Prebuild/src/Core/Nodes/SolutionNode.cs b/Prebuild/src/Core/Nodes/SolutionNode.cs
index 0121075..c777fa4 100644
--- a/Prebuild/src/Core/Nodes/SolutionNode.cs
+++ b/Prebuild/src/Core/Nodes/SolutionNode.cs
@@ -165,8 +165,10 @@ namespace Prebuild.Core.Nodes
165 { 165 {
166 get 166 get
167 { 167 {
168 return m_Configurations.Values; 168 ArrayList tmp = new ArrayList(ConfigurationsTable.Values);
169 } 169 tmp.Sort();
170 return tmp;
171 }
170 } 172 }
171 173
172 /// <summary> 174 /// <summary>
@@ -189,7 +191,9 @@ namespace Prebuild.Core.Nodes
189 { 191 {
190 get 192 get
191 { 193 {
192 return m_Projects.Values; 194 ArrayList tmp = new ArrayList(m_Projects.Values);
195 tmp.Sort();
196 return tmp;
193 } 197 }
194 } 198 }
195 199