Search code examples
c#asp.net.netasp.net-core-webapiasp.net-core-mvc-2.0

app.config migration for .net framework 4.x assemblies referenced in Core 2.0 Web API project?


I have a .net core web api project that references 4.x assemblies that have app.config settings. Can I convert the app.config settings to appsettings.json without modifying the old assemblies or do I just drop in an app.config file with the settings for the older assemblies? If I just drop in app.config files, how can I change those settings on publish?


Solution

  • So what I ended up doing is just adding app.config files. I also added an app.release.config and rename it to app.config as part of my publish process. I could not use config transformations. I could not get that to work in Azure CI at all.