15>ExcelDnaPack: bin\Debug\net6.0-windows\DDD.ExcelAddIn-AddIn.dna -> bin\Debug\net6.0-windows\DDD.ExcelAddIn-AddIn-packed.xll
15>Using base add-in C:\Users\mb\source\repos\DDD\DDD.ExcelAddIn\bin\Debug\net6.0-windows\DDD.ExcelAddIn-AddIn.xll
15> -> Updating resource: Type: CONFIG, Name: __MAIN__, Length: 13522
15> ~~> ExternalLibrary path DDD.ExcelAddIn.dll resolved to C:\Users\mb\source\repos\DDD\DDD.ExcelAddIn\bin\Debug\net6.0-windows\DDD.ExcelAddIn.dll.
15> -> Updating resource: Type: DNA, Name: __MAIN__, Length: 554
15> -> Updating resource: Type: ASSEMBLY_LZMA, Name: DDD.EXCELADDIN, Length: 36014
15>Completed Packing bin\Debug\net6.0-windows\DDD.ExcelAddIn-AddIn-packed.xll.
15>ExcelDnaPack: bin\Debug\net6.0-windows\DDD.ExcelAddIn-AddIn.xll.config -> bin\Debug\net6.0-windows\DDD.ExcelAddIn-AddIn-packed.xll.config
15>ExcelDnaPack: bin\Debug\net6.0-windows\ExcelDna-Template.dna -> bin\Debug\net6.0-windows\ExcelDna-Template-packed.xll
15>Using base add-in C:\Users\mb\source\repos\DDD\DDD.ExcelAddIn\bin\Debug\net6.0-windows\ExcelDna-Template.xll
15> -> Updating resource: Type: CONFIG, Name: __MAIN__, Length: 13522
15>System.InvalidOperationException : !!! error : ExternalLibrary `%OutputFileName%` not found. ABORTING.
15> at ExcelDnaPack.PackProgram.PackDnaLibrary(Byte[] dnaContent, String dnaDirectory, ResourceUpdater ru, Boolean compress, Boolean multithreading)
15> at ExcelDnaPack.PackProgram.Pack(String[] args)
15> at ExcelDnaPack.PackProgram.Main(String[] args)
15>C:\Users\mb\.nuget\packages\exceldna.addin\1.6.0-preview3\build\ExcelDna.AddIn.targets(230,5): error MSB3073: The command ""C:\Users\mb\.nuget\packages\exceldna.addin\1.6.0-preview3\build\..\tools\\net452\ExcelDnaPack.exe" "bin\Debug\net6.0-windows\ExcelDna-Template.dna" /Y /O "bin\Debug\net6.0-windows\ExcelDna-Template-packed.xll"" exited with code 1.
15>Done building project "DDD.ExcelAddIn.csproj" -- FAILED.
Hi Mathew,
It looks like, in addition to your add-in’s .dna file, another .dna file (the ‘template’ file) might be found in your project directory.
This is the ‘ExcelDna-Template…’ bit you see.
Inside the template.dna it has the replacement hole `%OutputFileName%` that you see mentioned.
It’s not a problem I’ve seen reported before, so it might be a leftover from an earlier installation that was ignored previously, or something is a bit different in your environment.
So I suggest just checking for some stray file like that, else write back and we’ll dig further.
-Govert
--
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/743c63fa-aafd-40f9-bee6-67e19613c2e6n%40googlegroups.com.