Skip to content

Commit

Permalink
4.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
pimbrouwers committed Nov 16, 2023
1 parent 285c88e commit e7f8060
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

All notable changes to this project will be documented in this file.

## [Unreleased]
## [4.0.5] - 2023-11-16

- Execution order of configuration builder (i.e., `configuration { add_env }`) set to match [default](https://learn.microsoft.com/en-us/dotnet/core/extensions/configuration#alternative-hosting-approach) configuration behaviour.

## [4.0.4] - 2023-03-13

Expand Down
10 changes: 5 additions & 5 deletions src/Falco/ConfigBuilder.fs
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ type ConfigBuilder (args : string[]) =
member _.Run(conf : ConfigBuilderSpec) =
let mutable bldr = ConfigurationBuilder().SetBasePath(conf.BasePath)

bldr.AddCommandLine(args) |> ignore

if conf.AddEnvVars then
bldr.AddEnvironmentVariables() |> ignore

for file in conf.RequiredFiles do
match file with
| IniFile file -> bldr.AddIniFile(file, optional = false, reloadOnChange = true)
Expand All @@ -51,6 +46,11 @@ type ConfigBuilder (args : string[]) =
if conf.InMemory.Keys.Count > 0 then
bldr.AddInMemoryCollection(conf.InMemory) |> ignore

if conf.AddEnvVars then
bldr.AddEnvironmentVariables() |> ignore

bldr.AddCommandLine(args) |> ignore

bldr.Build() :> IConfiguration

/// Sets the base path of the ConfigurationBuilder.
Expand Down
2 changes: 1 addition & 1 deletion src/Falco/Falco.fsproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AssemblyName>Falco</AssemblyName>
<Version>4.0.4</Version>
<Version>4.0.5</Version>

<!-- General info -->
<Description>A functional-first toolkit for building brilliant ASP.NET Core applications using F#.</Description>
Expand Down

0 comments on commit e7f8060

Please sign in to comment.