diff --git a/Common/DotGraphUtilities/DotGraph.cs b/Common/DotGraphUtilities/DotGraph.cs index b78afc1..d82b277 100644 --- a/Common/DotGraphUtilities/DotGraph.cs +++ b/Common/DotGraphUtilities/DotGraph.cs @@ -18,7 +18,7 @@ public static class DotGraph { public static IDictionary> LoadDependencyGraph(string targetFile) { - IDictionary> result = new SortedDictionary>(); + IDictionary> result = new SortedDictionary>(StringComparer.InvariantCultureIgnoreCase); IEnumerable validDigraphLines = ParseForValidDigraphLines(targetFile); diff --git a/MsBuildProjectReferenceDependencyGraph/MSBPRDependencyGraph.cs b/MsBuildProjectReferenceDependencyGraph/MSBPRDependencyGraph.cs index 0774091..2226039 100644 --- a/MsBuildProjectReferenceDependencyGraph/MSBPRDependencyGraph.cs +++ b/MsBuildProjectReferenceDependencyGraph/MSBPRDependencyGraph.cs @@ -6,6 +6,7 @@ namespace MsBuildProjectReferenceDependencyGraph { + using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.IO; @@ -26,7 +27,7 @@ class MSBPRDependencyGraph internal static Dictionary> ResolveProjectReferenceDependencies(IEnumerable targetProjects) { Stack unresolvedProjects = new Stack(); - Dictionary> resolvedProjects = new Dictionary>(); + Dictionary> resolvedProjects = new Dictionary>(StringComparer.InvariantCultureIgnoreCase); // Load up the initial projects to the stack foreach (string targetProject in targetProjects.Distinct()) @@ -279,7 +280,7 @@ internal static Dictionary> ResolveAssemblyReference ); // Convert this into the Dictionary - Dictionary> result = new Dictionary>(); + Dictionary> result = new Dictionary>(StringComparer.InvariantCultureIgnoreCase); foreach (KeyValuePair> kvp in resolvedAssemblyReferences) { result.Add(kvp.Key, kvp.Value); @@ -307,7 +308,7 @@ internal static Dictionary> ResolvePackageReferenceD ); // Convert this into the Dictionary - Dictionary> result = new Dictionary>(); + Dictionary> result = new Dictionary>(StringComparer.InvariantCultureIgnoreCase); foreach (KeyValuePair> kvp in resolvedPackageReferences) { result.Add(kvp.Key, kvp.Value); diff --git a/ProcessParallelAbility/ProcessParallelAbility/ParallelAbility.cs b/ProcessParallelAbility/ProcessParallelAbility/ParallelAbility.cs index 068a432..5dfdb7a 100644 --- a/ProcessParallelAbility/ProcessParallelAbility/ParallelAbility.cs +++ b/ProcessParallelAbility/ProcessParallelAbility/ParallelAbility.cs @@ -6,6 +6,7 @@ namespace ProcessParallelAbility { + using System; using System.Collections.Generic; using System.Linq; @@ -40,7 +41,7 @@ internal static IDictionary> ConvertParallelTreeToLevels(IDict /// A structure in which the Key is the project and the value is the depth within the given dependency tree. internal static IDictionary ResolveParallelTree(IDictionary> dependencyTree) { - IDictionary parallelBuildTree = new Dictionary(); + IDictionary parallelBuildTree = new Dictionary(StringComparer.InvariantCultureIgnoreCase); foreach (KeyValuePair> dotGraphEntry in dependencyTree) {