Under publishing settings on Windows Store player settings, there’s a drop down menu called “Compilation overrides”. There are 3 settings:
1.None。所有 C# 脚本都将使用 Mono C# 编译器进行编译;
2.Use Net Core Partially。"Assets/Plugins"、"Assets/Standard Assets"和"Assets/Pro Standard Assets"文件夹中的脚本将使用 Mono C# 编译器进行编译,而其余的脚本将使用 Microsoft C# 编译器进行编译;
3.Use Net Core。所有脚本都将使用 Microsoft C# 编译器进行编译。
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.
可在 <user>\AppData\Local\Microsoft\AppCertKit 中找到一个日志,其中可能包含有关失败的其他信息。
别担心。全部都在这里:
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. |
另请参阅依赖于平台的编译。
可能有几个原因: