I have a library that makes use of the old style appSettings
in app.config configuration file. For example:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="exampleKey" value="exampleValue" />
</appSettings>
</configuration>
I realise this is not good practice, but I cannot modify this library and need to use it as is.
In a .Net Core project (I'm trying this in a Unit Test project, but also need it to work in an Asp.Net Web API project), how do I configure an application configuration file so that when the library attempts to load its appsettings (presumably with a ConfigurationManager.AppSettings
command) it loads them correctly? Is this possible?