This message is generated by Visual Studio itself. I have the same message, but when I try to run the games. A build works.
So you have the problems when building? (try "build" from the project window popup menu).
OK sorry for not being clear, technically it does build, but the game will not run due to the same error message, how am I meant to test my games?