Skip to content

Commit

Permalink
Merge pull request #493 from kerams/redirects-case
Browse files Browse the repository at this point in the history
Make the file search for app.config and web.config case insensitive
  • Loading branch information
isaacabraham committed Dec 31, 2014
2 parents 0ce2d12 + 6648b62 commit 89e3f61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Paket.Core/BindingRedirects.fs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ let private applyBindingRedirects bindingRedirects (configFilePath:string) =
/// Applies a set of binding redirects to all .config files in a specific folder.
let applyBindingRedirectsToFolder rootPath bindingRedirects =
Directory.GetFiles(rootPath, "*.config", SearchOption.AllDirectories)
|> Seq.filter (fun x -> x.EndsWith(Path.DirectorySeparatorChar.ToString() + "web.config") || x.EndsWith(Path.DirectorySeparatorChar.ToString() + "app.config"))
|> Seq.filter (fun x -> x.EndsWith(Path.DirectorySeparatorChar.ToString() + "web.config", StringComparison.CurrentCultureIgnoreCase) || x.EndsWith(Path.DirectorySeparatorChar.ToString() + "app.config", StringComparison.CurrentCultureIgnoreCase))
|> Seq.iter (applyBindingRedirects bindingRedirects)

/// Calculates the short form of the public key token for use with binding redirects, if it exists.
Expand Down

0 comments on commit 89e3f61

Please sign in to comment.