Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Undefined symbol error after Blazor .NET 9 upgrade

$
0
0

I upgraded my code to .NET 9. After the upgrade, I am getting undefined symbol error:

wasm-ld : error : lto.tmp: undefined symbol: gprsharp_convert_clock_type [C:\dev\mymachine\build\ABv5P3KR\0\my-project\myprojectcode\src\MyModules\Module1\MyProject1.csproj]

This happens in the release build.

I set the flag WasmAllowUndefinedSymbols in BrowserWasmApp.targets file to true (the original value was false) and the code was built successfully with warnings. I don't understand why it fails when it is false after .NET 9 upgrade.

<WasmAllowUndefinedSymbols Condition="'$(WasmAllowUndefinedSymbols)' == ''">false</WasmAllowUndefinedSymbols>

Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>