Skip to content

Commit

Permalink
Make the file search for app.config and web.config case insensitive w…
Browse files Browse the repository at this point in the history
…hen writing binding redirects
  • Loading branch information
kerams committed Dec 31, 2014
1 parent 80b66de commit 6648b62
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 6648b62

Please sign in to comment.