Hi Homero,
Your packing does not pack FirstAddIn.dll because xml attributes are
case sensitive, and you need to say Pack="true" with a capital 'P'.
(Sorry - we really need a configuration tool that will eliminate these
kind of errors. Any volunteers?)
But that's not your initial question...
Are you trying to make a single add-in exposing both FirstAddIn.dll
and SecondAddIn.dll?
In this case you can just put both into the TheAddin.dna file as
ExternalLibraries:
<DnaLibrary RuntimeVersion="v4.0" ShadowCopyFiles="true">
<ExternalLibrary Path="FirstAddin.dll" />
<ExternalLibrary Path="SecondAddin.dll" />
</DnaLibrary>
Then your call from SecondAddin.dll to the FirstAddin.dll will work
fine.
Otherwise, SecondAddin should work fine if it is compiled with a
reference to FirstAddin.dll, and if FirstAddin.dll is in the same
directory as SecondAddIn.xll.
If you want to tell Excel-DNA to find FirstAddIn.dll elsewhere, you
can add a <Reference Path="C:\CompletePath\FirstAddIn.dll" /> into the
SecondAddIn.dna file.
To pack FirstAddIn.dll into SecondAddIn.xll, you are doing the right
thing - you just need the upper-case 'Pack' attribute.
[AFAIK, extension methods are resolved at compile time, so that's not
likely to be the issue.]
-Govert