You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
NET9 - warnings on building Blazor Wasm project (WASM0060, WASM0062, WASM0001) #110870
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(List1 pinvokes, List1 callbacks, HashSet`1 signatures, Type type)'
This warning is generated to indicate that the code will fail at runtime (and it will). The logic that is generating the warning could (and should) be improved to understand the SupportedOsPlatform attribute. For now I would suppress the warning.
Activity
dotnet-policy-service commentedon Jan 6, 2025
Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.
pavelsavara commentedon Feb 27, 2025
Related ? #112963
lewing commentedon Feb 27, 2025
This warning is generated to indicate that the code will fail at runtime (and it will). The logic that is generating the warning could (and should) be improved to understand the SupportedOsPlatform attribute. For now I would suppress the warning.
lewing commentedon Feb 27, 2025
Weakly related
pavelsavara commentedon Jul 15, 2026
@lewing have you fixed this recently ?
lewing commentedon Jul 19, 2026
fix is #131022
[mono][wasm] Respect [Un]SupportedOSPlatform in the Mono pinvoke gene…