How to create DLL instead of COM in .Net 8.0

We were using RemObjects Hydra using .NetFramework 4.8 and had to upgrade to .Net 8.0 recently.

I have following questions:

  1. dotNet Framework 4.8 generated dll. Why .Net core generates COM?
  2. Can I generate dll using .Net core?
  3. DLL runs in-process. Does the new .Net core generated COM runs in-process or out-of-process?

The issue we run into is related to TypeLib.

The Hydra managed code has 1 dll with 2 interfaces. With .Net framework we were able to access both frameworks without any issue.

Now one interface works fine but when I try to access the methods of other interface, I get typelib export: Type library is not registered error.

I have following all the steps mentioned here: NonVisual Plugins (.NET 5+)

I have also registered abc.comhost.dll using regsvr32 command as well using admin rights in CMD.