Skip to content

wasm aot compilation failed for BlazorFluentUI.CoreComponents #61352

@hez2010

Description

@hez2010

Description

wasm aot compilation failed for BlazorFluentUI.CoreComponents.

[BlazorFluentUI.CoreComponents.dll] Exec (with response file contents expanded) in C:\Users\hez20\source\repos\LabCenter\Client\obj\Release\net6.0\linked: MONO_PATH=C:\Users\hez20\source\repos\LabCenter\Client\obj\Release\net6.0\linked;C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\6.0.0\runtimes\browser-wasm\native\;C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\6.0.0\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\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\tools\bin\,static,llvmonly,interp,asmonly,llvm-outfile=C:\Users\hez20\source\repos\LabCenter\Client\obj\Release\net6.0\wasm\for-publish\BlazorFluentUI.CoreComponents.dll.bc.tmp" "BlazorFluentUI.CoreComponents.dll"


C:\Program Files\dotnet\packs\Microsoft.NET.Runtime.WebAssembly.Sdk\6.0.0\Sdk\WasmApp.Native.targets(506,5): error : Precompiling failed for C:\Users\hez20\source\repos\LabCenter\Client\obj\Release\net6.0\linked\BlazorFluentUI.CoreComponents.dll [C:\Users\hez20\source\repos\LabCenter\Client\LabCenter.Client.csproj]

Reproduction Steps

  1. Create a blazor wasm project
  2. Add nuget reference to BlazorFluentUI.CoreComponents
  3. Compile it with wasm aot enabled

Expected behavior

Compile successfully

Actual behavior

Failed to compile BlazorFluentUI.CoreComponents.dll

Regression?

No response

Known Workarounds

No response

Configuration

.NET 6 GA

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    arch-wasmWebAssembly architecturearea-Codegen-AOT-mononeeds-further-triageIssue has been initially triaged, but needs deeper consideration or reconsideration

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions