Custom Config Not Found on Version 5.09.07
I just upgraded to the latest version of LINQPad and found an issue with the custom config. I have a config file at the Global Default for queries location (C:\Program Files\LINQPad5\LINQPad.config) but the latest version acts like the file is empty and none of my config values are accessible.
If I copy and paste the file path to the Custom Path in query properties it works as expected. I am using Windows 10 and running LINQPad as admin (I know it's bad but have to for reasons). Let me know if you need more information or if I can do more testing.
Comments
You can verify what's being used for the config with the following query:
AppDomain.CurrentDomain.SetupInformation.ConfigurationFile
Just updated to 5.10.00 today, I restarted and it used the following as the global default. I checked and the file is indeed there.
AppDomain.CurrentDomain.SetupInformation.ConfigurationFile
returns
C:\Users\%username%\AppData\Local\Temp\LINQPad5\_ugbkdevv\ahyulq\LINQPadQuery.dll.custom.config
If I paste in the path to the config file that's currently set as global to the custom path the query works just fine.
File.ReadAllText (AppDomain.CurrentDomain.SetupInformation.ConfigurationFile)
Is the expected config content present in the file?
C:\Users\<username>\AppData\Local\Temp\LINQPad5\_hibxazmq\giiqkg\LINQPadQuery.dll.custom.config
<?xml version="1.0" encoding="utf-8"?> <configuration> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="System.Management.Automation" publicKeyToken="31bf3856ad364e35" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" /> </dependentAssembly> </assemblyBinding> </runtime> </configuration>
http://www.linqpad.net/download.aspx#beta