c# - 使用 .NET native 工具链编译导致 System.OutOfMemoryException

标签 c# visual-studio uwp visual-studio-2015

我正在尝试在 Release模式下构建我的 UWP 应用程序。每次编译都遇到:

error : Internal compiler error: Exception of type 'System.OutOfMemoryException' was thrown.

经过一番研究,我发现问题出在Compile with .NET native tool chain。当我取消勾选此选项(Project Property | Build)时,我的项目就可以构建了。

我的项目不是很大,但我有 13 个项目都采用相同的解决方案。它们都是普通组件(非常非常小)。

我使用的是 VS2015 社区版。

有什么想法吗?谢谢...

最佳答案

这是一个已知错误。昨天我遇到了同样的问题。我联系了负责 VS 的 MSDN 团队,正在等待他们的回复。现在我认为解决方法只是禁用 Native Tool Chain 选项。它仅在 Release模式下默认打开。

关于c# - 使用 .NET native 工具链编译导致 System.OutOfMemoryException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38048083/

相关文章:

c# - 具有不同结果的摊销时间表计算

c# - 将 Xamarin 应用程序部署到设备时,Visual Studio 2015 有时会卡住

c# - "AccessDenied"调用CreateDeviceInputNodeAsync时

c# - 为什么 JSON.NET 在我的 DataTable 中以这种格式输出 DateTime 值?

c# - DevExpress MVC LabelFor - 设置 css 类

c++ - 错误代码 C2451 无法运行基本程序

c# - 使用流保存 xml 文件会导致重复的根元素

uwp - .net native 编译器 2.0.2 无法构建应用程序。无法加载程序集 System.Data.dll

c# - Visual C# - 引用 > 添加引用... > COM : How is that list populated?

visual-studio - 如何在 Visual Studio 2019 中创建 xamarin PCL 项目