Hi,
I am trying to AOT a Web Assembly Blazor (.NET 6 RC2) project which uses Syncfusion . However it fails on publish when trying to AOT the Syncfusion.Blazor dll.
Steps to reproduce:
Please advise, as this is stopping us publishing our app.
[Syncfusion.Blazor.dll] Exec (with response file contents expanded) in C:\Users\XXX\repos\BlazorSyncfusionAOTIssue\BlazorSyncfusionAOTIssue\obj\Release\net6.0\linked: MONO_PATH=C:\Users\XXX\repos\BlazorSyncfusionAOTIssue\BlazorSyncfusionAOTIssue\obj\Release\net6.0\linked;C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\6.0.0-rc.2.21480.5\runtimes\browser-wasm\native\;C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\6.0.0-rc.2.21480.5\runtimes\browser-wasm\\lib\net6.0 MONO_ENV_OPTIONS= C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.browser-wasm\6.0.0-rc.2.21480.5\Sdk\..\tools\mono-aot-cross.exe --debug --llvm "--aot=no-opt,static,direct-icalls,deterministic,dwarfdebug,llvm-path=C:\Program Files\dotnet\packs\Microsoft.NET.Runtime.Emscripten.2.0.23.Sdk.win-x64\6.0.0-rc.2.21474.1\tools\bin\,static,llvmonly,interp,asmonly,llvm-outfile=C:\Users\XXX\repos\BlazorSyncfusionAOTIssue\BlazorSyncfusionAOTIssue\obj\Release\net6.0\wasm\for-publish\Syncfusion.Blazor.dll.bc.tmp" "Syncfusion.Blazor.dll"
C:\Program Files\dotnet\packs\Microsoft.NET.Runtime.WebAssembly.Sdk\6.0.0-rc.2.21480.5\Sdk\WasmApp.Native.targets(501,5): Error : Precompiling failed for C:\Users\XXX\repos\BlazorSyncfusionAOTIssue\BlazorSyncfusionAOTIssue\obj\Release\net6.0\linked\Syncfusion.Blazor.dll
We have validated the reported issue for “exception thrown while publishing AOT” at our end. We suspect that the issue might be occurred due to memory space because of using the entire NuGet (Syncfusion.Blazor) in your application. We have created a Blazor Web Assembly application with Calendar component by referring the individual NuGet package and published through CLI using “dotnet publish -c Release” and the folder published successfully without any errors. Could you please use the individual NuGet packages for the components used in your application. We have prepared a sample for your reference which you can download from the below link
Sample: https://www.syncfusion.com/downloads/support/forum/169884/ze/SyncfusionWasmAOT-287072499
That worked, thank you very much.