We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

AOT publish fails for Syncfusion.Blazor.dll

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:

  1. Create Web Assembly blazor project (.NET 6 RC2)
  2. Add syncfusion
  3. Enable AOT compilation for project
  4. Publish

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\Releaseet6.0\linked: MONO_PATH=C:\Users\XXX\repos\BlazorSyncfusionAOTIssue\BlazorSyncfusionAOTIssue\obj\Releaseet6.0\linked;C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\6.0.0-rc.2.21480.5\runtimes\browser-wasmative\;C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\6.0.0-rc.2.21480.5\runtimes\browser-wasm\\libet6.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\Releaseet6.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\Releaseet6.0\linked\Syncfusion.Blazor.dll


3 Replies

JL Joshna Lingala Uthama Reddy Lingala Syncfusion Team October 26, 2021 03:14 PM UTC

Hi John,
Greetings from Syncfusion.

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


Please get back to us if you have any queries.

Regards,
Joshna L




JO John October 26, 2021 05:49 PM UTC

That worked, thank you very much.



VM Vengatesh Maniraj Syncfusion Team October 27, 2021 03:17 AM UTC

Hi John, 

You are most welcome.  

We are happy that our solution has worked for you. 

Please get back to us if you need any further assistance. 

Regards, 
Vengatesh 


Loader.
Live Chat Icon For mobile
Up arrow icon