I've got an ASP.Net Core project, targeting .Net framework, so we use a mixture of the app.config and the appsettings.json. We're migrating to Azure App Services, so we want to use the built in publish functionality. The appsettings.json was easy to configure as I created an appsettings.Production.json and added reference to this in our code and then set the value in the Azure application settings.
builder.AddJsonFile($"appsettings.{Environment.EnvironmentName}.json", optional: true);
I can't seem to figure out a way to get the config files working though. The app.config publishes it's output into the exe.config that's produced. I've tried replicating various online examples, to use an app.release.config to transform this, but none work. We use Entity Framework 6 from .Net Framework, so it's expecting to read from the config file, as well as some web service connections.
Is there any way I can do this out of the box?
Thanks, David