using System; using System.Runtime.InteropServices; namespace COMNetCore6 { [ComVisible(true)] [Guid("56081E67-DCE9-4C3A-8F98-50A2F43B5250")] [ProgId("HelloWorldCOMObject64")] public class ComObject { public string SayHello() => "Hello world from .NET Core"; } }