-
Notifications
You must be signed in to change notification settings - Fork 110
Description
I am running an ASP.NET core application. My current settings file being used is appsettings.Development.json and configuration for the rest of my application is loading just fine from there.
However I am getting the message The configuration file 'appSettings.json' was not found
/Users/richardcollette/code/projectNameRoot/service/Dotted.Project.Name/bin/Debug/netcoreapp2.0/appSettings.json
It is however in the folder /Users/richardcollette/code/projectNameRoot/service/Dotted.Project.Name/bin/Debug/netcoreapp2.0/publish
Note the additional folder path of publish.
So two problems. It's not picking up the current executable path and second, it's not picking up the Development version.
I saw closed issue for this but this is ASP.net and also I have the concern about it not picking up the correct environment appsettings file.
If the rest of my application is picking up the configuration correctly, it would seem that perhaps the property accessor being used is too low level?
Is there a way to load my own list of settings (GetSection?) and pass them in to a feature FlagConfigurer?