--------------------------------------------------
Excel-DNA is now registered on GitHub Sponsors.
Please sign up for a monthly contribution – this encourages further development and support.
--------------------------------------------------
Hi there,
The feature you are talking about is to put a wildcard in the <Reference> tag in a .dna file, like this:
<?xml version="1.0" encoding="utf-8" ?>
<DnaLibrary>
<ExternalLibrary Path="MyLibrary.dll" Pack="true" />
<Reference Path="Libraries\*.dll" Pack="true" />
</DnaLibrary>
I think the path here is interpreted relative to the project root directory, not the output directory.
The feature was not removed, and the code is still in place, as you can see here:
One thing that was a bit of a regression in v1.6.0 was the build output from the ExcelDnaPack task – it no longer showed the individual files being packed in the build output window. This has been fixed subsequently, so it works better in the latest version 1.6.1-beta2.
There might be some other regression that you’re seeing.
If so, maybe you can make a small project that build correctly under v1.1 and fails under the current version.
If you are moving to SDK-style project files, there are different ways to add extra files for the packing.
<PropertyGroup>
<ExcelAddInInclude>SDKExcelAddInName.dll;SDKExcelAddInFileName.dll</ExcelAddInInclude>
</PropertyGroup>
<Target Name="PackedReferences" AfterTargets="AfterBuild" BeforeTargets="ExcelDnaBuild">
<ItemGroup>
<References Include="$(OutDir)*.dll" Exclude="$(OutDir)$(TargetFileName)"/>
</ItemGroup>
<PropertyGroup>
<ExcelAddInInclude>@(References)</ExcelAddInInclude>
</PropertyGroup>
</Target>
To enable this feature you set the following properties in the project files:
<ExcelDnaPackNativeLibraryDependencies>true</ExcelDnaPackNativeLibraryDependencies>
<ExcelDnaPackManagedDependencies>true</ExcelDnaPackManagedDependencies>
The result will be that the right platform and architecture-specific dependencies will be packed automatically.
-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/bdd699be-7da9-40fd-917a-38c780f46872n%40googlegroups.com.