@@ -33,7 +33,7 @@ internal class ModFileManager
3333 /// <exception cref="UserErrorException">The mod package isn't valid.</exception>
3434 public ModFileManager ( string projectDir , string targetDir , Regex [ ] ignoreFilePatterns , bool validateRequiredModFiles )
3535 {
36- this . Files = new Dictionary < string , FileInfo > ( StringComparer . InvariantCultureIgnoreCase ) ;
36+ this . Files = new Dictionary < string , FileInfo > ( StringComparer . OrdinalIgnoreCase ) ;
3737
3838 // validate paths
3939 if ( ! Directory . Exists ( projectDir ) )
@@ -68,7 +68,7 @@ public ModFileManager(string projectDir, string targetDir, Regex[] ignoreFilePat
6868 /// <summary>Get the files in the mod package.</summary>
6969 public IDictionary < string , FileInfo > GetFiles ( )
7070 {
71- return new Dictionary < string , FileInfo > ( this . Files , StringComparer . InvariantCultureIgnoreCase ) ;
71+ return new Dictionary < string , FileInfo > ( this . Files , StringComparer . OrdinalIgnoreCase ) ;
7272 }
7373
7474 /// <summary>Get a semantic version from the mod manifest.</summary>
@@ -165,8 +165,8 @@ private bool ShouldIgnore(FileInfo file, string relativePath, Regex[] ignoreFile
165165 || this . EqualsInvariant ( file . Name , "Newtonsoft.Json.xml" )
166166
167167 // code analysis files
168- || file . Name . EndsWith ( ".CodeAnalysisLog.xml" , StringComparison . InvariantCultureIgnoreCase )
169- || file . Name . EndsWith ( ".lastcodeanalysissucceeded" , StringComparison . InvariantCultureIgnoreCase )
168+ || file . Name . EndsWith ( ".CodeAnalysisLog.xml" , StringComparison . OrdinalIgnoreCase )
169+ || file . Name . EndsWith ( ".lastcodeanalysissucceeded" , StringComparison . OrdinalIgnoreCase )
170170
171171 // OS metadata files
172172 || this . EqualsInvariant ( file . Name , ".DS_Store" )
@@ -183,7 +183,7 @@ private bool EqualsInvariant(string str, string other)
183183 {
184184 if ( str == null )
185185 return other == null ;
186- return str . Equals ( other , StringComparison . InvariantCultureIgnoreCase ) ;
186+ return str . Equals ( other , StringComparison . OrdinalIgnoreCase ) ;
187187 }
188188 }
189189}
0 commit comments