Есть выпадающее меню “Compilation overrides” в разделе Publishing Settings в настройках проигрывателя Windows Store. В меню доступно 3 опции:
1. None. All C# scripts will get compiled with Mono C# compiler;
2. Use Net Core Partially. Scripts that are in folders "Assets/Plugins", "Assets/Standard Assets" and "Assets/Pro Standard Assets" will get compiled with Mono C# compiler, while the rest will be compiled with Microsoft C# compiler;
3. Use Net Core. All scripts will get compiled with Microsoft C# compiler.
Both compilers have their ups and downs. Compiling scripts with the Mono C# compiler will allow them to be referenced by JavaScript scripts, which, for example, is needed for Angry Bots (hence you have to set it to none). However, using the Microsoft C# compiler will allow you to use Microsoft specific APIs without the need for plugins - just wrap the code in #if NETFX_CORE/#endif, and it will compile and work just fine.
You can find a log in <user>\AppData\Local\Microsoft\AppCertKit which might contain additional information about the failure.
No worries. Here’s all of them:
NETFX_CORE | Defined on Windows Store 8.0, Windows Store 8.1, Windows Phone 8.1, Universal 8.1 and Universal 10 scripts that are compiled using Microsoft C# compiler. |
WINDOWS_UWP | Defined on Universal Windows 10 scripts that are compiled using Microsoft C# compiler. |
See also platform dependent compilation.
There could be couple of reasons: