Delphi 12 Host + .NET Core 8 WPF Plugin Runtime Exception

I’m working on a project integrating .NET Core 8 into a Delphi application. I encountered a problem with the System.Runtime.dll assembly. When I run my application, I receive the following error message:

The file or assembly “System.Runtime, Version=8.0.0.0, …” or one of its dependencies could not be found. The system cannot find the file specified.

I have the .NET Core 8 SDK and the runtime installed. Hydra is version 6.7.0.1341.

The project was created using the example and doesn’t contain any logic yet.
I need to convert another project to .NET Core 8 and am having the same problem there. So I wanted to test it using a small test tool. Unfortunately, it has the same error.

Hi,

How are you load your .NET Core plugin into Delphi Host?

.NET Core plugins can be loaded only as COM plugins with LoadComModule method.

I’ve attached sample with Delphi host and .Net Core plugin: .NET Core Plugin.zip (29.7 KB)

Note: this sample was added to .1345 so it may require this version or newer one.