SuperJMN
SuperJMN

Reputation: 14002

Universal Windows Application fails to build in Release with ReactiveUI

Repro steps:

error : ILT0005: 'C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\runtime.win10-x86.microsoft.net.native.compiler\2.2.7-rel-27913-00\tools\x86\ilc\Tools\nutc_driver.exe @"C:\Users\JMN\source\repos\App6\App6\obj\x86\Release\ilc\intermediate\MDIL\App6.rsp"' returned exit code 1

Upvotes: 2

Views: 354

Answers (1)

MattWhilden
MattWhilden

Reputation: 1696

This is caused by the whole program optimizer running out of memory. You can run that portion of our tools in 64 bit mode by adding this to your project:

<Use64Bitcompiler>true</Use64Bitcompiler>

Because .NET Native is a whole program optimizer, it takes a while for the compiler to chew through things but I'm able to build your repro successfully with this flag enabled.

Certainly let me know if you discover otherwise. That would be very interesting.

Upvotes: 3

Related Questions