[wix-users] Bad Image Format Exception

Joseph L. Casale jcasale at activenetwerx.com
Wed Nov 15 10:52:13 PST 2017


-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf
Of Habib Salim via wix-users
Sent: Wednesday, November 15, 2017 11:03 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Habib Salim <habib at hsalim.com>
Subject: Re: [wix-users] Bad Image Format Exception
 
> I finally figured it out.  the Custom Action project should use .Net
> Framework 3.5 as the target framework.
> (FW3.0 and 2.0 may also work; I haven't tried).  FW4.0 and above changes
> the runtime to 4.0 causing the BadImageFormatException.

I was paying attention to your post as I have seen that before but failed
to recall how I resolved it. I assure you the CA project does not need to target
3.5, that simply resolved your issue somehow but it is not a requirement.

I am currently in working in a large project with countless CAs and the solution
is targeting 4.6.2.

jlc



More information about the wix-users mailing list