NativeAOT RTD

12 views
Skip to first unread message

gabe...@gmail.com

unread,
Aug 4, 2026, 2:06:40 AM (yesterday) Aug 4
to Excel-DNA
Hi,

Want to share with you that current NativeAOT doesn't support custom RTD server. ChatGPT provided a working solution:

  Modified:

  - ExcelDna.Integration/Registration/StaticRegistration.cs:26 — added the static RTD server registry.
  - ExcelDna.Integration/TypeHelper.cs:34 — added the AOT RTD type factory.
  - ExcelDna.Integration/DnaLibrary.cs:314 — registers generated RTD servers and initializes synchronization.
  - ExcelDna.Integration/ExcelRtd.cs:113 — recognizes the generated COM wrapper.
  - ExcelDna.SourceGenerator.NativeAOT/Generator.cs:92 — discovers public ExcelRtdServer subclasses and emits
    registration code.

  New:

  - ExcelDna.Integration/ComInterop/Generator/ExcelRtdServerWrapper.cs:13 — source-generated COM adapter connecting
    Excel’s RTD interface to a custom ExcelRtdServer.
DnaLibrary.cs
Generator.cs
TypeHelper.cs
StaticRegistration.cs
ExcelRtdServerWrapper.cs
ExcelRtd.cs
Reply all
Reply to author
Forward
0 new messages