Search code examples
visual-studio-2015win-universal-appvisual-studio-2017windows-10-universal.net-native

UWP Compilation in Release fails


I've updated Visual Studio 2015 to Update 2. And now .NET Native compiler stops working every time I compile the project. (It works just great for the blank app).

STARTPROCESSTASK : error : Internal compiler Error

error : Method 'A(object)' will always throw an exception due to the missing method 'B'. There may have been a missing assembly.

error : ILT0005: 'C:\Program Files (x86)\MSBuild\Microsoft.NetNative\x86\ilc\Tools\nutc_driver.exe @"C:\Projects\x86\Release\ilc\intermediate\MDIL\App5.rsp"' returned exit code -1073741819

That's actually true that some assemblies are missing but I have a lot of some legacy stuff and I will not get those assemblies. Before Update 2 compiler gave me a warning instead of error and the app ran without any issues.


Solution

  • Just to help conclude this thread - we did release an update to Visual Studio that includes a fix for this issue. If you are installing Visual Studio 2015 Update 2 for the first time, you will automatically get the fix. If you already have Visual Studio 2015 Update 2 installed and are running into this issue, please go to Add/Remove Programs, Choose Change, Choose Modify, and then make sure that you have the 1.3.2 version of the Tools for Universal Windows apps.