While running the application with .Net native chain tool in Release mode, it requires more memory space to build the application. Because .NET Native tools are compiled IL libraries with managed code in native libraries. And in our "Syncfusion Controls for UWP XAML" SDK contains more number of assemblies. We can resolve this SystemOutofMemory exception using either way listed below,
Way 1: Refer only needed assemblies of Syncfusion instead of referring Syncfusion UWP SDK.
Syncfusion UWP SDK has assemblies for all controls where you can refer assemblies needed only based on the control you are using.
$system drive:\ Files\Syncfusion\Essential Studio\$Version # \Assemblies for Universal Windows\[TargetFramework]
Ex: Program Files (x86)\Syncfusion\Essential Studio\220.127.116.11\Assemblies for Universal Windows\10.0
Also, you can find the list which contains assemblies and dependency assemblies of the control from below location.
Way 2: Enable Use64BitCompiler in project
We already reported this issue in VisualStudio community forum and they have suggested to use Use64BitCompiler as work-around to solve the issue while compiling the project with Nuget which contains more number of Assemblies. Please find the work-around from below,
Note: System configuration or requirements for using 64 bit compiler:
64BitCompilation will trigger only if we use UWP tools 2.0 which will support in Visual Studio 2017 15.4 and Windows 10 Fall Creators Update.
We can ensure whether the 64BitCompilation triggered or not by ensuring the reference path of nutc_driver.exe in compilation log file located in object folder.
For example, our UWP application has log file in below folder,
Open the log file and search for nutc_driver.exe, if the path of the nutc_driver.exe has same as the following command line (nutc_driver.exe should refer from the Tools64 folder instead of Tools) we can be sure that the 64BitCompilation is triggered in our project.
C:\Program Files (x86)\Microsoft SDKs\NuGetPackagesFallback\microsoft.net.native.compiler\2.0.2\tools\x86\ilc\Tools64\nutc_driver.exe
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|
or the page will be automatically redirected to sign-in page in 10 seconds.