jason-roberts / FeatureToggle

Simple, reliable feature toggles in .NET
http://dontcodetired.com/blog/?tag=/featuretoggle
Apache License 2.0
689 stars 111 forks source link

Key Not Found in AppSettings #166

Open ghost opened 5 years ago

ghost commented 5 years ago

Hi Jason,

we have a slightly unusual project setup. We created an asp.net core project, however it targets net462 only. I have an appsettings.json file with some features in but when I try and check a feature I get the 'Key not found in appsettings' error.

I can replicate this by creating a default Asp.Net core API project then changing the target framework to net462, creating a feature and then testing the feature in the controller.

I'm guessing it's loading the settings file (I'm not getting the FileNotFound error that I've also seen reported here) but then cannot load the feature flag from that file.

Any help gratefully received.

Thanks