Index: Project.cs
===================================================================
RCS file: /cvsroot/nant/nant/src/NAnt.VSNet/Project.cs,v
retrieving revision 1.9
diff -u -r1.9 Project.cs
--- Project.cs	23 Jul 2003 17:51:07 -0000	1.9
+++ Project.cs	12 Aug 2003 06:52:56 -0000
@@ -18,6 +18,7 @@
 using System;
 using System.IO;
 using System.Collections;
+using System.Collections.Specialized;
 using System.Diagnostics;
 using System.Reflection;
 using System.Resources;
@@ -38,11 +39,11 @@
         private const string COMMAND_FILE = "compile-commands.txt";
 
         public Project(Task nanttask, TempFileCollection tfc) {
-            _htConfigurations = new Hashtable();
-            _htReferences = new Hashtable();
-            _htFiles = new Hashtable();
-            _htResources = new Hashtable();
-            _htAssemblies = new Hashtable();
+            _htConfigurations = CollectionsUtil.CreateCaseInsensitiveHashtable();
+            _htReferences = CollectionsUtil.CreateCaseInsensitiveHashtable();
+            _htFiles = CollectionsUtil.CreateCaseInsensitiveHashtable();
+            _htResources = CollectionsUtil.CreateCaseInsensitiveHashtable();
+            _htAssemblies = CollectionsUtil.CreateCaseInsensitiveHashtable();
             _nanttask = nanttask;
             _tfc = tfc;
         }
@@ -122,7 +123,7 @@
             nlConfigurations = doc.SelectNodes( "//Config" );
             foreach ( XmlElement elemConfig in nlConfigurations ) {
                 ConfigurationSettings cs = new ConfigurationSettings( _ps, elemConfig );
-                _htConfigurations[ elemConfig.Attributes[ "Name" ].Value.ToLower() ] = cs;
+                _htConfigurations[ elemConfig.Attributes[ "Name" ].Value ] = cs;
             }
 
             nlReferences = doc.SelectNodes( "//References/Reference" );
@@ -222,7 +223,7 @@
         public bool Compile(string strConfiguration, ArrayList alCSCArguments, string strLogFile, bool bVerbose, bool bShowCommands ) {
             bool bSuccess = true;
 
-            ConfigurationSettings cs = ( ConfigurationSettings )_htConfigurations[ strConfiguration.ToLower() ];
+            ConfigurationSettings cs = ( ConfigurationSettings )_htConfigurations[ strConfiguration ];
             if ( cs == null ) {
                 Console.WriteLine( "Configuration {0} does not exist, skipping.", strConfiguration );
                 return true;
Index: Solution.cs
===================================================================
RCS file: /cvsroot/nant/nant/src/NAnt.VSNet/Solution.cs,v
retrieving revision 1.6
diff -u -r1.6 Solution.cs
--- Solution.cs	23 Jul 2003 17:24:14 -0000	1.6
+++ Solution.cs	12 Aug 2003 06:52:56 -0000
@@ -17,6 +17,7 @@
 
 using System;
 using System.Collections;
+using System.Collections.Specialized;
 using System.IO;
 using System.Text.RegularExpressions;
 using System.Xml;
@@ -31,12 +32,12 @@
     public class Solution {
         public Solution( string strSolutionFilename, ArrayList alAdditionalProjects, ArrayList alReferenceProjects, TempFileCollection tfc, Task nanttask ) {
             _strFilename = strSolutionFilename;
-            _htProjects = new Hashtable();
-            _htProjectDirectories = new Hashtable();
-            _htOutputFiles = new Hashtable();
-            _htProjectFiles = new Hashtable();
-            _htProjectDependencies = new Hashtable();
-            _htReferenceProjects = new Hashtable();
+            _htProjects = CollectionsUtil.CreateCaseInsensitiveHashtable();
+            _htProjectDirectories = CollectionsUtil.CreateCaseInsensitiveHashtable();
+            _htOutputFiles = CollectionsUtil.CreateCaseInsensitiveHashtable();
+            _htProjectFiles = CollectionsUtil.CreateCaseInsensitiveHashtable();
+            _htProjectDependencies = CollectionsUtil.CreateCaseInsensitiveHashtable();
+            _htReferenceProjects = CollectionsUtil.CreateCaseInsensitiveHashtable();
             _tfc = tfc;
             _nanttask = nanttask;
 
@@ -110,12 +111,12 @@
         }
 
         public Solution( ArrayList alProjects, ArrayList alReferenceProjects, TempFileCollection tfc, Task nanttask ) {
-            _htProjects = new Hashtable();
-            _htProjectDirectories = new Hashtable();
-            _htOutputFiles = new Hashtable();
-            _htProjectFiles = new Hashtable();
-            _htProjectDependencies = new Hashtable();
-            _htReferenceProjects = new Hashtable();
+            _htProjects = CollectionsUtil.CreateCaseInsensitiveHashtable();
+            _htProjectDirectories = CollectionsUtil.CreateCaseInsensitiveHashtable();
+            _htOutputFiles = CollectionsUtil.CreateCaseInsensitiveHashtable();
+            _htProjectFiles = CollectionsUtil.CreateCaseInsensitiveHashtable();
+            _htProjectDependencies = CollectionsUtil.CreateCaseInsensitiveHashtable();
+            _htReferenceProjects = CollectionsUtil.CreateCaseInsensitiveHashtable();
             _tfc = tfc;
             _nanttask = nanttask;
 
@@ -141,7 +142,7 @@
         private void AddProjectDependency( string strProjectGUID, string strDependencyGUID ) {
             //Console.WriteLine( "{0}->{1}", strProjectGUID, strDependencyGUID );
             if ( !_htProjectDependencies.Contains( strProjectGUID ) )
-                _htProjectDependencies[ strProjectGUID ] = new Hashtable();
+                _htProjectDependencies[ strProjectGUID ] = CollectionsUtil.CreateCaseInsensitiveHashtable();
 
             ( ( Hashtable )_htProjectDependencies[ strProjectGUID ] )[ strDependencyGUID ] = null;
         }
@@ -184,7 +185,7 @@
 
                 foreach ( string strConfiguration in p.Configurations ) {
                     //Console.WriteLine( "{0} [{1}] -> {2}", p.Name, strConfiguration, p.GetConfigurationSettings( strConfiguration ).FullOutputFile.ToLower() );
-                    _htOutputFiles[ p.GetConfigurationSettings( strConfiguration ).FullOutputFile.ToLower() ] = strGUID;
+                    _htOutputFiles[ p.GetConfigurationSettings( strConfiguration ).FullOutputFile ] = strGUID;
                 }
             }
 
@@ -196,8 +197,8 @@
                 foreach ( Reference r in p.References ) {
                     if ( r.IsProjectReference )
                         AddProjectDependency( strGUID, r.ProjectReferenceGUID );
-                    else if ( _htOutputFiles.Contains( r.Filename.ToLower() ) )
-                        AddProjectDependency( strGUID, ( string )_htOutputFiles[ r.Filename.ToLower() ] );
+                    else if ( _htOutputFiles.Contains( r.Filename ) )
+                        AddProjectDependency( strGUID, ( string )_htOutputFiles[ r.Filename ] );
                 }
             }
         }
@@ -212,8 +213,8 @@
 
         public bool Compile( string strConfiguration, ArrayList alCSCArguments, string strLogFile, bool bVerbose, bool bShowCommands ) {
             Hashtable htDeps = ( Hashtable )_htProjectDependencies.Clone();
-            Hashtable htProjectsDone = new Hashtable();
-            Hashtable htFailedProjects = new Hashtable();
+            Hashtable htProjectsDone = CollectionsUtil.CreateCaseInsensitiveHashtable();
+            Hashtable htFailedProjects = CollectionsUtil.CreateCaseInsensitiveHashtable();
 
             bool bSuccess = true;
             while ( true ) {
@@ -235,18 +236,18 @@
                             foreach ( Reference r in p.References ) {
                                 //Console.WriteLine( "Original: {0}", r.Filename );
                                 if ( r.IsProjectReference ) {
-                                    Project pRef = ( Project )_htProjects[ r.ProjectReferenceGUID ];
+                                    Project pRef = GetProjectFromGUID(r.ProjectReferenceGUID);
                                     if ( pRef == null )
                                         throw new Exception( "Unable to locate referenced project while loading " + p.Name );
                                     if ( pRef.GetConfigurationSettings( strConfiguration ) == null )
-                                        throw new Exception( "Unable to find appropriate configuration for project reference" );
+                                        throw new Exception( "Unable to find appropriate configuration " + strConfiguration + " for project reference " + p.Name);
                                     if ( pRef != null )
-                                        r.Filename = pRef.GetConfigurationSettings( strConfiguration ).FullOutputFile.ToLower();
+                                        r.Filename = pRef.GetConfigurationSettings( strConfiguration ).FullOutputFile;
                                 } 
-                                else if ( _htOutputFiles.Contains( r.Filename.ToLower() ) ) {
-                                    Project pRef = ( Project )_htProjects[ ( string )_htOutputFiles[ r.Filename.ToLower() ] ];
+                                else if ( _htOutputFiles.Contains( r.Filename ) ) {
+                                    Project pRef = ( Project )_htProjects[ ( string )_htOutputFiles[ r.Filename ] ];
                                     if ( pRef != null && pRef.GetConfigurationSettings( strConfiguration ) != null )
-                                        r.Filename = pRef.GetConfigurationSettings( strConfiguration ).FullOutputFile.ToLower();
+                                        r.Filename = pRef.GetConfigurationSettings( strConfiguration ).FullOutputFile;
                                 }
                                 
                                 //Console.WriteLine( "   Now: {0}", r.Filename );
