Hello,
I have been trying to build our iOS/Android projects as Windows Store Apps with mixed success. The first project works well but while the second one builds fine it runs into an exception every frame. I checked the log file created and find the following:
Exception: The type initializer for ‘UnityScript.Lang.UnityRuntimeServices’ threw an exception.
InnerException: Could not load file or assembly System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e or one of its dependencies. The system cannot find the file specified.
AdditionalInfo:
at UnityScript.Lang.UnityRuntimeServices.GetEnumerator(Object obj)
at StaticController.Update()
at StaticController.UnityFastInvoke_Update()
The application doesn’t crash but the same error is present in other objects during update which disables most of the functionality, can’t click buttons etc.
Both projects also get some strange warnings during build if i set the build output verbosity to detailed in visual studio:
There was a conflict between “mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089” and “mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e”.
1> “mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089” was chosen because it had a higher version.
The same warnings are present in both projects but the exception only happens in one of them. in addition to mscorlib, the same warning is shown for System and System.Core. It looks like this could be the problem but then how come one of the projects still work?
I’m using windows 8.1 and Visual Studio 2012, could this be an issue?
Any ideas or suggestions are welcome.