ExcelDNA .net 6 project style, referenced nuget package are not packed in the xll.

78 views
Skip to first unread message

Nassir Kassanaly

unread,
Jun 12, 2023, 10:54:33 AM6/12/23
to Excel-DNA
Hello, 
I am using entity framework in my add-in (nuget ref), but i am getting error like this when runing : 
Screenshot_14.png
If i manually add the dll in the dna file the issue is resolved, but i have do to de the same for every other ref dlls..
Is there a way to autopack references nuget package?
Thanks.

Govert van Drimmelen

unread,
Jun 12, 2023, 10:56:18 AM6/12/23
to exce...@googlegroups.com

Hi Nassir,

 

What version of Excel-DNA are you using?

This issue should be resolved in the current pre-release versions (v 1.7.0-rc4 is the latest) where we use the .deps.json file to determine which dependencies to pack.

 

-Govert

 

From: exce...@googlegroups.com <exce...@googlegroups.com> On Behalf Of Nassir Kassanaly
Sent: Monday, June 12, 2023 4:55 PM
To: Excel-DNA <exce...@googlegroups.com>
Subject: [ExcelDna] ExcelDNA .net 6 project style, referenced nuget package are not packed in the xll.

 

Hello, 

I am using entity framework in my add-in (nuget ref), but i am getting error like this when runing : 

If i manually add the dll in the dna file the issue is resolved, but i have do to de the same for every other ref dlls..
Is there a way to autopack references nuget package?
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 on the web visit https://groups.google.com/d/msgid/exceldna/fb47dee0-6b18-4191-851e-932efc0de2a0n%40googlegroups.com.

image001.png

Nassir Kassanaly

unread,
Jun 12, 2023, 11:10:28 AM6/12/23
to Excel-DNA
Hello  Govert,
Thanks for the quick reply.
I am using the latest version available in
 Screenshot_15.png
Should I clone the repo and manually reference projects or is there a nuget source that includes the version v 1.7.0-rc4 is the latest
Thank you

Govert van Drimmelen

unread,
Jun 12, 2023, 11:12:01 AM6/12/23
to exce...@googlegroups.com

You can enable to option to see “Pre-realse” versions.

Or just edit the .csproj file and change the version number to 1.7.0-rc4.

 

-Govert

 

From: exce...@googlegroups.com <exce...@googlegroups.com> On Behalf Of Nassir Kassanaly
Sent: Monday, June 12, 2023 5:10 PM
To: Excel-DNA <exce...@googlegroups.com>
Subject: Re: [ExcelDna] ExcelDNA .net 6 project style, referenced nuget package are not packed in the xll.

 

Hello  Govert,
Thanks for the quick reply.

I am using the latest version available in

 

image001.png

Nassir Kassanaly

unread,
Jun 12, 2023, 11:18:28 AM6/12/23
to Excel-DNA
It's working with the latest version.

Thank you!!!

Reply all
Reply to author
Forward
0 new messages