Error -1073741819 when building UWP app in Release mode using 64-bit .NET Native Toolchain

Richard Zhang-MSFT 6,936 Reputation points
2019-12-13T03:15:47.107+00:00

Source Link: MSDN

When building our UWP app in Release mode using the 32-bit .NET Native Toolchain we seem to be running out of memory, so we have tried to move to 64-bit Native Toolchain compilation by adding the following options to the various PropertyGroup sections of the .csproj file

Imgur

We now get the following error during build:

C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.2.7-rel-27913-00\tools\Microsoft.NetNative.targets(801,5): error MSB6006: "ilc.exe" exited with code -1073741819.

We cannot find any information on this error code anywhere - nor its hex equivalent C0000005. Also, we are wondering whether the 64-bit compiler is actually being used, as the path indicates a 32-bit program.

Any clue or help would be greatly appreciated.

Universal Windows Platform (UWP)
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Richard Zhang-MSFT 6,936 Reputation points
    2019-12-13T03:18:11.4+00:00

    Hello,​

    Welcome to our Microsoft Q&A platform!

    You can try to adjust the level of detail of the log file:

    Tools->Options->Projects and Solutions>Build and Run->Change "MSBuild project build output verbosity" to Diagnostic.

    Also, when you choose to compile UWP apps with .Net Native, check out this document, which mentions some unsupported APIs. If you use these APIs, it is recommended not to use .Net Native for project compilation.

    Regarding the inability to insert XML Code, check out this linked solution

    Thanks.

    0 comments No comments