You additionally need this to have these below parts to have your service recognize the appsettings.json.
Make sure that build copies this file to the output folder together with the binaries. For services using Microsoft.NET.Sdk.Web this should happen automatically. For services using Microsoft.NET.Sdk, add the following snippet to your project file:
Why is this breaking change PR?
This PR to disable legacy ActivityEventSender and OmexLogger default.
How to enable legacy ActivityEventSender and OmexLogger?
In your appsettings.json, put this
You additionally need this to have these below parts to have your service recognize the appsettings.json.
Make sure that build copies this file to the output folder together with the binaries. For services using Microsoft.NET.Sdk.Web this should happen automatically. For services using Microsoft.NET.Sdk, add the following snippet to your project file:
If you are using ServiceFabric, Ensure working folder is set to CodePackage in ServiceManifest.xml
Reference: