UseDotNetNativeToolchain为true时发生内部编译器错误 [英] Internal compiler error when UseDotNetNativeToolchain is true

查看:109
本文介绍了UseDotNetNativeToolchain为true时发生内部编译器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个UWP应用程序,如果我关闭了UseDotNetNativeToolchain,则该应用程序将成功编译.但是当我打开它时,它给了我一个神秘的错误:

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:

内部编译器错误:对象引用未设置为 对象的实例. UWPApp C:\ Program文件 (x86)\ MSBuild \ Microsoft.NetNative \ x86 \ ilc \ IlcInternals.targets 887 Build

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.

使用VS2015

以下是完整版本的输出,以帮助您:

Here is the full build output in case that helps:

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

推荐答案

此问题的解决方案是在Default.rd.xml文件中使用的一些程序集中禁用优化.例如

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"/>

这篇关于UseDotNetNativeToolchain为true时发生内部编译器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆