What is the standard structure to add keys to appsettings.json?
Also, how to read those values in our run.csx?
Normally in app.config, we had Con
Here's how you can set it up:
Add your json at the root of your repo, example app.settings.json
Add the Diretory.Build.targets (.targets is the extension here) file as follows
<_IsFunctionsSdkBuild Condition="$(_FunctionsTaskFramework) != ''">true
<_FunctionsExtensionsDir>$(TargetDir)
<_FunctionsExtensionsDir Condition="$(_IsFunctionsSdkBuild) == 'true'">$(_FunctionsExtensionsDir)bin
This will explicitly tell the compiler to include the app.settings.json file when dotnet build is ran and will include said file in a the /bin, allowing your dll's to access it.
Happy coding.