C++/CLI Dll AspNetCore load issue
Hi,
I'm reaching out for a generic issue. In our department, we are using LinqPad for long time with older versions. Now we are migrating from .NET Fx to .NET 8, and using LinqPad 8 we cannot properly load our C++/CLI library, let's name it MyNetInterface.dll.
This is our output from debugging query process of LinqPad:
Marking "Reference ASP .NET Core" and including MyNetInterface.runtimeconfig.json in query properties was not a solution. Basically, only solution we could find was replacing this file:
%LocalAppData%\LINQPad\8.8.9\ProcessServer\8.0.16\LINQPad.Query.runtimeconfig.json
By a file that includes "Microsoft.AspNetCore.App" as a framework:
{
"runtimeOptions": { "tfm": "net8.0", "rollForward": "Disable", "frameworks": [ { "name": "Microsoft.NETCore.App", "version": "8.0.16" }, { "name": "Microsoft.WindowsDesktop.App", "version": "8.0.16" }, { "name": "Microsoft.AspNetCore.App", "version": "8.0.16" } ] }
}
This was the only way, and it works, yay! But linqpad overwrites this file on launch. Could you suggest any way to prevent this? Or any possibility to reflect option "Reference ASP .NET Core" in this file? We'd appreciate any help. Thank you.