setup error in c#
-
Hi, i want to make setup my project in c# but i have this error Error 27 File 'log4net.dll' targeting 'AMD64' is not compatible with the project's target platform 'x86' C:\Users\user\Documents\Visual Studio 2010\Projects\WindowsFormsApplication3\Insurance Management Setup\Insurance Management Setup\Insurance Management Setup.vdproj Insurance Management Setup Also i want to be run the setup in 32 bit and 64 bit platform What is the solution ??
-
Hi, i want to make setup my project in c# but i have this error Error 27 File 'log4net.dll' targeting 'AMD64' is not compatible with the project's target platform 'x86' C:\Users\user\Documents\Visual Studio 2010\Projects\WindowsFormsApplication3\Insurance Management Setup\Insurance Management Setup\Insurance Management Setup.vdproj Insurance Management Setup Also i want to be run the setup in 32 bit and 64 bit platform What is the solution ??
zebra88 wrote:
Error 27 File 'log4net.dll' targeting 'AMD64' is not compatible with the project's target platform 'x86' C:\Users\user\Documents\Visual Studio 2010\Projects\WindowsFormsApplication3\Insurance Management Setup\Insurance Management Setup\Insurance Management Setup.vdproj Insurance Management Setup
Why this is happening is described in the error message: you are trying to deploy the AMD (AMD64) targeted dll against a Generic x86 (x86) application.
zebra88 wrote:
What is the solution ??
Personally, I'd start by downloading the Log4Net Source and building alongside the app so it always builds against the same version as the app. You could also get the generic version of the dll and deploy that, but as you require 32-bit deployment as well it might get messy. As for 32/64 bit deployment, the simplest thing to do is to set up both 32 and 64 bit versions of your build configuration and swapping to produce 32 and 64-bit versions of your MSIs. You could also consider two installer projects for each, but it depends on your circumstances. If you want a single installer where the user chooses which version as part of the installation process, then that is beyond my ken I'm afraid.
“Education is not the piling on of learning, information, data, facts, skills, or abilities - that's training or instruction - but is rather making visible what is hidden as a seed”
“One of the greatest problems of our time is that many are schooled but few are educated”Sir Thomas More (1478 – 1535)