Linqpad is the only scripting environment in which I can work with my large code base. The reason this is the only environment that works for me is because other solutions (ironpython etc.) cannot always load the configuration correctly from app.config, but linqpad.config works
The problem is that I have several configuration files, and every time I want to use one of them for a script, I need to go to the linqpad installation directory, rename the correct configuration file to linqpad.config and restart linq. Hardly productive.
I tried to install the file via:
AppDomain.CurrentDomain.SetData("APP_CONFIG_FILE", @"C:\Shared\app.config");
but it had no effect. Is there a way to change the configuration file that will be used in the Main () method of a C # program in Linqpad? If I could make a call to a function that installs the configuration file to be used and then run the rest of my code, that would be great.
source share