I’ve seen older threads with similar errors, but none have been helpful. I’m trying to build for Windows Phone on a Windows 8 machine with Visual Studio 2013 that has Windows Phone 8.1 SDK integrated and Unity version 4.5.0, and I experienced this same problem in 4.3.1. Here is the error I get:
Unhandled Exception: System.TypeLoadException: Could not load type ‘UnityEngine.BitStream’ from assembly ‘UnityEngine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’.
It works fine when building on a Windows 7 machine for Android and PC, and it works fine on a Mac building for iOS. I’ve searched the code for any obvious references to UnityEngine.BitStream and there are none. Any thoughts?