As I was working on my native wrapper for Windows Phone, I somehow managed to break the build process. Although there were no modification on my side, on invoking the Build command I would get this:
Not exactly what I was expecting, and I needed to solve this in order to get my DLL. The problem lies in the machine type declaration that is passed to the linker. For some reason, mine got cleared, and therefore the default architecture was set to X86, which is obviously the wrong choice. To change this, you can go two ways.
1. Change the target machine by selection.
Right click on the project and select Properties. Select Linker and open the Advanced item.
Select the Target Machine property and modify it to MachineTHUMB (/MACHINE:THUMB) (what in the world is THUMB?).
2. Add the /MACHINE parameter manually.
Opening the same Properties dialog, in the Linker section, select Command Line. In Additional Options, add a space and type: /MACHINE:THUMB.
You're all set and ready to continue working now. The solution is that simple. Here are some more details on the /MACHINE parameter.