NET9 - warnings on building Blazor Wasm project (WASM0060, WASM0062, WASM0001) #110870
Open
1 task done
Labels
arch-wasm
WebAssembly architecture
area-System.Runtime.InteropServices.JavaScript
os-browser
Browser variant of arch-wasm
Milestone
Is there an existing issue for this?
Describe the bug
1>WasmApp.Common.targets(793,5): Message WASM0060 : Type System.Object is not blittable: Not a ValueType
1>WasmApp.Common.targets(793,5): Message WASM0062 : Type System.Runtime.InteropServices.HandleRef is not blittable: Field _wrapper is not blittable
1>WasmApp.Common.targets(793,5): Warning WASM0001 : Could not get pinvoke, or callbacks for method 'ExternalLibrary.ExternalClass::GetCharABCWidthsFloat' because 'System.NotSupportedException: Unsupported parameter type in method 'ExternalLibrary.ExternalClass.GetCharABCWidthsFloat'
at PInvokeCollector.g__CollectPInvokesForMethod|6_0(MethodInfo method, <>c__DisplayClass6_0&)
at PInvokeCollector.CollectPInvokes(List
1 pinvokes, List
1 callbacks, HashSet`1 signatures, Type type)'Expected Behavior
No warnings (as it was in NET8)
Steps To Reproduce
https://github.com/konstantin-karpukhin/BlazorWASM0001
Exceptions (if any)
Project should be configured for NET9 with WasmEnableSIMD set to false
.NET Version
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: