Skip to content

Specifying dlls to be packed in the .net 6 csproj file #595

Answered by govert
JonTheTurnip asked this question in Q&A
Discussion options

You must be logged in to vote

TLDR; (1) You should not have the extra lines in the ExcelAddInInclude property. Make it like this:

<ExcelAddInInclude>Microsoft.Extensions.Logging.dll<ExcelAddInInclude>

TLDR; (2) But it should all work without the ExcelAddInInclude, if you are using the latest ExcelDna.AddIn package version 1.7.0-rc3.

It did take me a bit to notice this, so here is some of the missing documentation I wrote along the way.


If you are targeting .NET 6, then the assemblies (and also native runtime dependencies) to be packed should be picked up from the .deps.json file (be sure to use that latest 1.7.0-rc2 version to test this). If this does not work right for you, please give some more details for us to l…

Replies: 5 comments 8 replies

Comment options

You must be logged in to vote
7 replies
@JonTheTurnip
Comment options

@govert
Comment options

@govert
Comment options

@JonTheTurnip
Comment options

@JonTheTurnip
Comment options

Answer selected by JonTheTurnip
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Turhan8
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants