Skip to content

Commit

Permalink
get config from env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
maitlandmarshall committed Sep 5, 2023
1 parent 4ec3185 commit 67261fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions MIFCore.Common/MIFCore.Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="3.1.17" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="3.1.7" />
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="3.1.7" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ public static IConfigurationBuilder UseSettingsFile(this IConfigurationBuilder b
.AddJsonFile("settings.json", optional: false)
.AddJsonFile("settings.default.json", optional: true);

builder.AddEnvironmentVariables();

return builder;
}

Expand Down

0 comments on commit 67261fe

Please sign in to comment.