I am using VS2010 to build a 64-bit application on a 32-bit machine with .Net framework 2.0 (32-bit) installed. When I compile the project, it gave the following error:
SGEN : error : An attempt was made to load an assembly with an incorrect format: C:\path\to\refered.dll
The 'refered.dll' exists in the folder and it is 64-bit. And I need the xmlSerializers.dll.
I guess it is because the sgen.exe is 32 bit on the machine and it cannot work on the 64bit dll. Then I tried coping a 64-bit sgen.exe to the machine and let the VS call that 64bit one. But it does not work as "it is not a valid 32 bit application".
Could anyone help please? Thanks a lot