Hi Jeremy,
For targeting .NET core (like your .NET 8), you need the binaries that will be built from the “ExcelDna.Host” project in the solution.
(The “ExcelDna” project outputs target .NET Framework, hence your somewhat confusing message).
For 64-but you need ExcelDna.Host.x64.xll (and perhaps the matching ExcelDna.MagangedHost.dll, though I think it’s already packed in the .xll after the build).
-Govert
From: exce...@googlegroups.com <exce...@googlegroups.com> On Behalf Of Jérémy CHANUT
Sent: 11 June 2025 21:31
To: Excel-DNA <exce...@googlegroups.com>
Subject: [ExcelDna] .NET Framework not found
Hi there !
I'm playing around with Excel-DNA, and as I cannot just use the nutget package for security reasons, I downloaded the source code from the master branch in order to generate the whole thing myself.
I then created a basic C# project for my addin, linked it to ExcelDna.Integration.dll, created my dna file, and copy/paste/rename the ExcelDna64.xll file.
And when I try to load my plugin, I accept the warning about the Trust User Setting, and then I get this error (cf attached image).
However through my testing I noticed that i I used the ExcelDna64.xll file from the downloaded nutget package located here : ("C:\Users\...\.nuget\packages\exceldna.addin\1.8.0\tools\net6.0-windows7.0\ExcelDna64.xll"), it works fine, the error is gone.
I tried using several ExcelDna64.xll from the repo, the one ins Distribution/, and the ones located in Source/ExcelDna/x64/...
Am I doing something wrong ?
PS : my addin is setup to use .NET 8.0
Thanks
--
You received this message because you are subscribed to the Google Groups "Excel-DNA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to exceldna+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/exceldna/eb44e314-ca76-403c-8936-86c4e51bcc5en%40googlegroups.com.
I think ExcelDna.Intergration.dll should be identical between the two – I doubt there’s platform specific code there.
To view this discussion visit https://groups.google.com/d/msgid/exceldna/79ee82fd-e095-4e07-8bc8-000c71d7847an%40googlegroups.com.