Skip to content

NET9 - warnings on building Blazor Wasm project (WASM0060, WASM0062, WASM0001) #110870

Closed

Description

@konstantin-karpukhin

Is there an existing issue for this?

  • I have searched the existing issues

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(List1 pinvokes, List1 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

Activity

  1. transferred this issue fromdotnet/aspnetcoreon Dec 20, 2024
  2. ghost added
    needs-area-labelAn area label is needed to ensure this gets routed to the appropriate area owners
    on Dec 20, 2024
  3. dotnet-policy-service commented on Jan 6, 2025

    @dotnet-policy-service
    Contributor

    Tagging subscribers to 'arch-wasm': @lewing
    See info in area-owners.md if you want to be subscribed.

  4. removed
    needs-area-labelAn area label is needed to ensure this gets routed to the appropriate area owners
    on Jan 6, 2025
  5. pavelsavara commented on Feb 27, 2025

    @pavelsavara
    Member

    Related ? #112963

  6. added this to the 10.0.0 milestone on Feb 27, 2025
  7. lewing commented on Feb 27, 2025

    @lewing
    Member

    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.

  8. lewing commented on Feb 27, 2025

    @lewing
    Member

    Related ? #112963

    Weakly related

  9. modified the milestones: 10.0.0, 11.0.0 on Aug 5, 2025
  10. pavelsavara commented on Jul 15, 2026

    @pavelsavara
    Member

    @lewing have you fixed this recently ?

  11. lewing commented on Jul 19, 2026

    @lewing
    Member

    fix is #131022

  12. added a commit that references this issue on Jul 19, 2026
    ce2ddcc
  13. locked and limited conversation to collaborators on Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions