Restricting the build to 32bits .xll files

79 views
Skip to first unread message

jant...@gmail.com

unread,
Aug 2, 2021, 6:41:11 AM8/2/21
to Excel-DNA
Hi

Is there a simple way to restrict the build to the 32bit version only (and produce only the MyProject-Addin.xll and MyProject-Addin-packed.xll but not their 64bit versions,  MyProject-Addin64.xll and  MyProject-Addin64-packed.xll)?

Maybe via some settings in the .dna file?
Thank you.
Jan

Govert van Drimmelen

unread,
Aug 2, 2021, 8:45:30 AM8/2/21
to Excel-DNA
--------------------------------------------------
Excel-DNA is now registered on GitHub Sponsors.
You can add Excel-DNA sponsorship to encourage support and future development, with easy billing through a corporate GitHub account.
-------------------------------------------------- 

Hi Jan,

Yes, it is easy to only build the 32-bit add-in.
For F# projects you can set a property in your project file (the .fsproj file, not the .dna file) to disable the 64-bit build.

  <PropertyGroup>
    <ExcelDnaAllowPackageReferenceProjectStyle>true</ExcelDnaAllowPackageReferenceProjectStyle>
    <RunExcelDnaSetDebuggerOptions>false</RunExcelDnaSetDebuggerOptions>
    <ExcelDnaCreate64BitAddIn>false</ExcelDnaCreate64BitAddIn>
  </PropertyGroup>

For C# and VB.NET projects, the NuGet package will add a file called Properties\ExcelDna.Build.props to the project, with the same setting accessible there.

-Govert

J Anthelme

unread,
Aug 2, 2021, 9:30:48 AM8/2/21
to exce...@googlegroups.com
It works, thanks a lot Govert. I could not find this information online.
Jan

--
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/e713872f-4be2-437f-89e1-adf2ca6978d4n%40googlegroups.com.



Reply all
Reply to author
Forward
0 new messages