Skip to content

Commit b54870d

Browse files
Update Sample Add-In to use default ExcelDna.AddIn settings
Includes packing of the add-in via ExcelDnaPack One minor exception is including the `.pdb` files
1 parent 362dfa4 commit b54870d

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

sample/SampleAddIn/Properties/ExcelDna.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<!--
2727
Define the suffix used for each platform-specific file e.g. MyAddIn64.dna
2828
-->
29-
<ExcelDna32BitAddInSuffix Condition="'$(ExcelDna32BitAddInSuffix)' == ''">32</ExcelDna32BitAddInSuffix>
29+
<ExcelDna32BitAddInSuffix Condition="'$(ExcelDna32BitAddInSuffix)' == ''"></ExcelDna32BitAddInSuffix>
3030
<ExcelDna64BitAddInSuffix Condition="'$(ExcelDna64BitAddInSuffix)' == ''">64</ExcelDna64BitAddInSuffix>
3131
</PropertyGroup>
3232

@@ -37,7 +37,7 @@
3737
<!--
3838
Enable/Disable packing of .dna files
3939
-->
40-
<RunExcelDnaPack Condition="'$(RunExcelDnaPack)' == ''">false</RunExcelDnaPack>
40+
<RunExcelDnaPack Condition="'$(RunExcelDnaPack)' == ''">true</RunExcelDnaPack>
4141

4242
<!--
4343
Suffix used for packed .xll files e.g. MyAddIn-packed.xll

sample/SampleAddIn/SampleAddIn.dna

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
<DnaLibrary Name="Excel-DNA Enrichers Sample Add-In" RuntimeVersion="v4.0" xmlns="http://schemas.excel-dna.net/addin/2018/05/dnalibrary">
2-
<ExternalLibrary Path="SampleAddIn.dll" ExplicitExports="true" ExplicitRegistration="true" LoadFromBytes="false" Pack="false" />
2+
<ExternalLibrary Path="SampleAddIn.dll" ExplicitExports="false" LoadFromBytes="true" Pack="true" IncludePdb="true" />
3+
4+
<Reference Path="Serilog.dll" Pack="true" IncludePdb="true" />
5+
<Reference Path="Serilog.Enrichers.ExcelDna.dll" Pack="true" IncludePdb="true" />
6+
<Reference Path="Serilog.Sinks.ExcelDnaLogDisplay.dll" Pack="true" IncludePdb="true" />
37
</DnaLibrary>

0 commit comments

Comments
 (0)