Issues from upgrading from dotnet v4.8 framework to dotnet8

16 views
Skip to first unread message

Alfred Manoj

unread,
Oct 7, 2025, 3:02:07 PM (yesterday) Oct 7
to Excel-DNA
Hello Excel-DNA Team,

We’re migrating a WPF-based Excel-DNA project from .NET Framework 4.8 to .NET 8, and we’ve run into two key issues:

Project Setup
  • Previously used assembly references to ExcelDna.Integration.dll and Microsoft.Office.Interop.Excel.dll.
  • Two .dna files (32-bit and 64-bit) with corresponding .xll files committed to the repo.
  • Now using NuGet packages:
    • ExcelDna.AddIn (v1.9.0)
    • ExcelDna.Interop (v15.0.1)
  • Target framework: net8.0-windows
  • Ribbon UI defined in .dna with fallback to CommandBar (onAction).
  • Ribbon uses RunTagMacro for invocation.
Issues Encountered
  1. PlatformNotSupportedException

    • Occurs when launching the .xll files generated via the new setup.
    • Despite the exception, fallback CommandBar UI loads and functions.
    • Exception message is vague, but functionality continues.
  2. Ribbon UI Not Loading

    • Ribbon defined in .dna does not appear in Excel.
    • No visible error unless fallback UI is triggered.
    • RunTagMacro callbacks are not invoked (which are defined in the ribbonui). But we do have a defined call invoking Run("") from the code which works.
Troubleshooting Done
  • We do have .NET Desktop Runtime 8.0 installed.
  • Added RuntimeVersion="v8.0" to the root <DnaLibrary> node as suggested in GitHub Discussion #788. [github.com]
  • Confirmed .xll files are generated for both 32-bit and 64-bit.
  • Ribbon XML and callbacks are unchanged from the working .NET Framework version.
Questions
  1. What could be the root cause of the PlatformNotSupportedException in this context?
  2. Are there specific changes or limitations in .NET 8 that affect Ribbon UI loading?
  3. Is RunTagMacro fully supported in .NET 8 Excel-DNA add-ins?
  4. Are there additional configuration steps needed to enable Ribbon UI in .NET 8?
Thanks a lot in advance for your help and for maintaining such a powerful tool!

Regards,
Alfred
Reply all
Reply to author
Forward
0 new messages