.NET Framework not found

41 views
Skip to first unread message

Jérémy CHANUT

unread,
Jun 11, 2025, 3:46:45 PMJun 11
to Excel-DNA
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).Screenshot 2025-06-11 152100.png

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

Govert van Drimmelen

unread,
Jun 11, 2025, 4:36:35 PMJun 11
to exce...@googlegroups.com

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.

image001.png

Jérémy CHANUT

unread,
Jun 11, 2025, 5:13:27 PMJun 11
to Excel-DNA
Hi,

Thanks for the answer :)

I guess that I should use the ExcelDna.Integration.dll located in Source/ExcelDna.Host as well ?

Govert van Drimmelen

unread,
Jun 11, 2025, 5:16:27 PMJun 11
to exce...@googlegroups.com

I think ExcelDna.Intergration.dll should be identical between the two – I doubt there’s platform specific code there.

Reply all
Reply to author
Forward
0 new messages