You are mixing up the Platform target setting as specified on the Project + Properties Build tab for a managed project and the active Solution Platform as visible in the Configuration Manager.
They are two very different things and VS2010 made that pretty confusing. The Solution Platform only matters for C++ projects, the kind of projects that actually have a target architecture dependency that needs to be selected up front. Since a different compiler and linker is needed at build time. Managed projects can deal with anything thanks to the jitter, the real machine code that's executed is created at runtime.
You need to completely ignore the Solution Platform setting since it has no meaning for managed projects. Very sad that VS2010 named the default one "x86", it used to be named "AnyCPU" in previous VS versions. Which of course does make more sense for managed projects.