You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* working on adding default HOCON loading methods (#151)
Added ConfigurationFactory.FromFile method
Added new HOCON loading order per 151
Made ConfigurationFactory.Load Obsolete
* added specs
* cleaned up Default() method
* added default HOCON reading instructions to README
Copy file name to clipboardExpand all lines: README.md
+7
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,13 @@ HOCON is significantly harder to specify and to parse than
41
41
JSON. Think of it as moving the work from the person maintaining
42
42
the config file to the computer program.
43
43
44
+
## Default HOCON Configuration Sources
45
+
By default the HOCON library will look for HOCON configurations in the following locations whenever you call the `Hocon.Configuration.ConfigurationFactory.Default()` method:
46
+
47
+
1.[.NET Core / .NET Framework] An "app.conf" or an "app.hocon" file in the current working directory of the executable when it loads;
48
+
2.[.NET Framework] - the `<hocon>``ConfigurationSection` inside `App.config` or `Web.config`, which should also resolve #8 and #9
49
+
3.[.NET Framework] - and a legacy option, to load the old `<akka>` HOCON section for backwards compatibility purposes with all users who have been using HOCON with Akka.NET.
50
+
44
51
## Definitions
45
52
46
53
- a _key_ is a string JSON would have to the left of `:` and a _value_ is
0 commit comments