From 1876c70ebdc2b620797318a56fb4c2ea03fbef17 Mon Sep 17 00:00:00 2001 From: lbsa71 Date: Wed, 13 Jun 2007 21:06:39 +0000 Subject: * Changed some more sort order issues * Updated vs2005 files as well --- Prebuild/src/Core/Nodes/ProjectNode.cs | 14 ++++++- Prebuild/src/Core/Nodes/SolutionNode.cs | 10 +++-- Prebuild/src/Prebuild.csproj | 66 ++++++++++++++++----------------- 3 files changed, 52 insertions(+), 38 deletions(-) (limited to 'Prebuild/src') diff --git a/Prebuild/src/Core/Nodes/ProjectNode.cs b/Prebuild/src/Core/Nodes/ProjectNode.cs index 5f03c4d..c56dacc 100644 --- a/Prebuild/src/Core/Nodes/ProjectNode.cs +++ b/Prebuild/src/Core/Nodes/ProjectNode.cs @@ -81,7 +81,7 @@ namespace Prebuild.Core.Nodes /// /// [DataNode("Project")] - public class ProjectNode : DataNode + public class ProjectNode : DataNode, IComparable { #region Fields @@ -496,5 +496,15 @@ namespace Prebuild.Core.Nodes #endregion - } + + #region IComparable Members + + public int CompareTo(object obj) + { + ProjectNode that = (ProjectNode)obj; + return this.m_Name.CompareTo(that.m_Name); + } + + #endregion + } } 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 { get { - return m_Configurations.Values; - } + ArrayList tmp = new ArrayList(ConfigurationsTable.Values); + tmp.Sort(); + return tmp; + } } /// @@ -189,7 +191,9 @@ namespace Prebuild.Core.Nodes { get { - return m_Projects.Values; + ArrayList tmp = new ArrayList(m_Projects.Values); + tmp.Sort(); + return tmp; } } diff --git a/Prebuild/src/Prebuild.csproj b/Prebuild/src/Prebuild.csproj index df6b4f4..c8b859c 100644 --- a/Prebuild/src/Prebuild.csproj +++ b/Prebuild/src/Prebuild.csproj @@ -9,7 +9,7 @@ App.ico - prebuild + Prebuild Prebuild.snk true JScript @@ -60,6 +60,10 @@ 1595 + + System.dll + False + System.EnterpriseServices.dll False @@ -68,10 +72,6 @@ System.Xml.dll False - - System.dll - False - @@ -83,6 +83,9 @@ Code + + Code + Code @@ -92,25 +95,19 @@ Code - - Code - - - Code - - + Code Code - + Code - + Code - + Code @@ -122,73 +119,76 @@ Code - + Code - + Code Code - + Code Code + + Code + Code - + Code - + Code - + Code - + Code Code - + Code - + Code - + Code Code - + Code - + Code - + Code - + Code - + Code - + Code - + Code - + Code -- cgit v1.1