Unable to get appsettings in lprun8 - works in Linqpad UI

I'm upgrading a legacy system to .NET 8 (from 4.6.2) and need to access appsettings using ConfigurationManager. I've added LINQPad.Query.dll.config as a reference in the .linq file and it's working correctly in the ui, but when I try to run it using lprun8 it doesn't pick up the config.
Is there another way to provide the config file for lprun8.exe?

Answers