From 6648b6226411b0a1ee690ad6319128fdaa0db8ed Mon Sep 17 00:00:00 2001 From: kerams Date: Wed, 31 Dec 2014 15:10:11 +0100 Subject: [PATCH] Make the file search for app.config and web.config case insensitive when writing binding redirects --- src/Paket.Core/BindingRedirects.fs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Paket.Core/BindingRedirects.fs b/src/Paket.Core/BindingRedirects.fs index 67f2c0fc5b..3822c5a38e 100644 --- a/src/Paket.Core/BindingRedirects.fs +++ b/src/Paket.Core/BindingRedirects.fs @@ -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.