i have a problem with the read of configurationmanager.appsettings, i want to debug with LINQPad 8 a program with a DLL library that i create.
The problem is that the DLL library take a URL of a webserver from the config file (app.config if is a desktop software or web.config if it’s a web app) but i don’t know how to do this in linqpad 8.
In my DLL i use this instruction for take the url of webserver (after i call the api from this url):
string url = ConfigurationManager.AppSettings["Url"];
How can i fix it?
Thanks.
The code for LINQPad 8 or the code of LINQPad.config/appsettings.json for take that variable from ConfigurationManager.AppSettings.
Lepanto is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.