Skip to content

Commit 31564e3

Browse files
author
Sam Hanes
committed
App.config/Web.config file names case sensitive on linux
1 parent 351cca6 commit 31564e3

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/SqlClient.DesignTime/DesignTimeConnectionString.fs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,13 @@ type internal DesignTimeConnectionString =
3030
then raise <| FileNotFoundException( sprintf "Could not find config file '%s'." path)
3131
else path
3232
else
33-
let appConfig = Path.Combine(resolutionFolder, "app.config")
34-
let webConfig = Path.Combine(resolutionFolder, "web.config")
33+
// note: these filenames are case sensitive on linux
34+
let appConfig = Path.Combine(resolutionFolder, "App.config")
35+
let webConfig = Path.Combine(resolutionFolder, "Web.config")
3536

3637
if File.Exists appConfig then appConfig
3738
elif File.Exists webConfig then webConfig
38-
else failwithf "Cannot find either app.config or web.config."
39+
else failwithf "Cannot find either App.config or Web.config."
3940

4041
let map = ExeConfigurationFileMap()
4142
map.ExeConfigFilename <- configFilename

0 commit comments

Comments
 (0)