How to use custom runtimeconfig.json from LinqPad?
I've recently started getting an error "System.Drawing.Common is not supported on this platform" when trying to use the EPPlus Nuget package. I only get this error when loading our application's library DLL into LinqPad which references EPPlus to generate an Excel file. I found this page which seems to explain the error:
However the fix involves adding a setting to the runtimeconfig.json file:
"configProperties": { "System.Drawing.EnableUnixSupport": true }
How can I access the runtimeconfig.json file used by LinqPad or use my own?
Comments
This shouldn't happen: the System.Drawing.Common in .NET 6 should usurp the NuGet package. Go to Query Properties, Advanced, Show Assembly Resolution log. Can you post the output?
I am having the same issue, any solution?
Can you provide a step-by-step repro?