Search code examples
.netuwpwin-universal-app

Build process in "Release" gets stuck for UWP application


I have a UWP application that builds and runs perfectly in Debug mode, but when I try to build it in Release (using .NET Native), the build process gets stuck somewhere and never finishes.

The project is here: https://github.com/SuperJMN/ParrotDiscoReflight.git. You can try yourself. Clone the master branch and a compile in Release mode.

I tried to put the build logging to the "Diagnostic" level, and it doesn't show anything strange. In fact, it seems it's not the build stage what is stuck, but a later stage related to "ilc.exe"

I don't have a clue of what's the problem.


Solution

  • OK, the problem is that the .NET Native compiler has a known incompatibility with System.Reactive 4.1+. The only workaround for now is to add an explicit reference to System.Reactive 4.0.0.

    For more info: https://twitter.com/pmatmic/status/1057281313781108738