question

RichardZhang-MSFT avatar image
0 Votes"
RichardZhang-MSFT asked ·

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

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.

windows-uwpwindows-uwp-xaml
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

RichardZhang-MSFT avatar image
0 Votes"
RichardZhang-MSFT answered ·

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.





· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.