Internal compiler error when UseDotNetNativeToolchain is true

妖精的绣舞 提交于 2019-12-07 23:29:31

问题


I have a UWP app that compiles successfully if I have UseDotNetNativeToolchain off. But when I turn it on, it gives me the cryptic error:

Internal compiler error: Object reference not set to an instance of an object. UWPApp C:\Program Files (x86)\MSBuild\Microsoft.NetNative\x86\ilc\IlcInternals.targets 887 Build

This is all it gives me. What could be causing this? How can I drill down on this.

Using VS2015

Here is the full build output in case that helps:

https://gist.github.com/shannah/e24fe8456313fb9ad98577c9a812f357


回答1:


The solution to this problem was to disable optimization in a few assemblies I was using in the Default.rd.xml file. E.g.

 <Assembly Name="IKVM.OpenJDK.Core" Dynamic="All" DoNotInline="true" DoNotOptimize="true"/>


来源:https://stackoverflow.com/questions/36655045/internal-compiler-error-when-usedotnetnativetoolchain-is-true

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!