Windows Installer Setup Project does not accept output from VSTO Excel add-in project due to supposed architecture mismatch

Jarek Jaryszew 20 Reputation points

I am migrating an old Excel add-in from 32 to 64 bits. Orignal source code was lost so I need to repackage VBA files from an old MSI cabinet. I want to build a package (MSI) that contains:

  • Updated Excel files from the old plugin (XLAM, XLA and some others)
  • New VSTO Excell add-in that will load the VBA modules to Excell on startup.

I have configured a Windows Installer Setup Project to package output from the Add-in.

enter image description here

enter image description here

Problem is that I keep getting this error:

ERROR: File 'VSTOAddIn.dll' of project output 'Primary output from VSTOAddIn (Active)' targeting 'AMD64' is not compatible with the project's target platform 'x86'.

I have set any drop down with architecture I found in both project configuration to "x64". In the build manager it seems like the Installer Setup Project is architecture agnostic:

enter image description here

Am I missing somthing or my approach is wrong alltogether?

Tested with Visual Studio Community 2019 and 2022

Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,579 questions
0 comments No comments
{count} votes

0 additional answers

Sort by: Most helpful