In Windows Phone XNA 4.0, I am receiving the following error when compiling: the windows phone platform does not support custom shaders.
This is really annoying, because I have an Xbox 360 version of the project, and a Windows version of the project as well.
I tried using the compilation based #if !WINDOWS_PHONE and #endif, but with no luck. It seems as if it ignores this.
How can I make this file be excluded or ignored when compiled in the Windows Phone project?
As a workaround, you could:
Since you might also want to use smaller textures etc. on WP7 than you are using on Xbox, I’d just create separate game and content projects for WP7 and Xbox and move the common game code to a library.
Oh, and tell me if you figure how to select a different content project based on, e.g., the solution configuration so that the separate game project is not needed 🙂