Excel-DNA / ExcelDna

Excel-DNA - Free and easy .NET for Excel. This repository contains the core Excel-DNA library.
https://excel-dna.net
zlib License
1.26k stars 272 forks source link

ExcelAddInExplicitExports not working? #582

Closed nsulikowski closed 1 year ago

nsulikowski commented 1 year ago

When using PackageReference, setting ExcelAddInExplicitExports to true:

<PropertyGroup>
        <ExcelAddInExplicitExports>true</ExcelAddInExplicitExports>
        ...
</PropertyGroup>

Doesn't seem to change ExplicitExports to true in the auto generated .dna file:

<ExternalLibrary Path="IntersectXLL.dll" ExplicitExports="false" LoadFromBytes="true" Pack="true" IncludePdb="false" />
govert commented 1 year ago

What is your ExcelDna.AddIn package version?

nsulikowski commented 1 year ago
<PackageReference Include="ExcelDna.AddIn" Version="1.6.0" />

and TargetFramework:

<TargetFramework>net6.0-windows</TargetFramework>
govert commented 1 year ago

OK that property was added later. I suggest you work with the current 1.7.0-rc2 package.

nsulikowski commented 1 year ago

1.7.0-rc2 solved it. Thanks.