log4net.dll' targets a different processor than the application.

When I build a solution in C# in Visual Studio 2012 I get a warning :
Referenced assembly 'C:\Windows\assembly\GAC_64\log4net\1.2.10.0__692fbea5521e1304\log4net.dll' targets a different processor than the application.

Is there some way around this?

TIA
LVL 1
machine_runAsked:
Who is Participating?
 
Miguel OzSoftware EngineerCommented:
From the path (GAC_64) we can conclude that your dll is a 64-bit version. Either you need to make your app 64-bit, i.e. change your target CPU to x64 or else get a 32-bit version of log4net.
To change "target CPU" go to Project Properties, go to Compile tab , click Advanced Compile Option, then set your target CPU to x64.
Note: By default target CPU="Any CPU"
0
 
machine_runAuthor Commented:
THANKS
0
 
Ali AliProject ManagerCommented:
My question is incase I select x64, can I install on PC that has 32bit OS? "The software that I developed"
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.