Skip to content

[BUG] AvatarView constructor throws FieldAccessException when using .NET MAUI 10.0.40 #3100

Closed as duplicate

Description

@solomonfried

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

Current Behavior

AvatarView constructor throws FieldAccessException when using .NET MAUI 10.0.40

Expected Behavior

No exception should be thrown

Steps To Reproduce

Steps to Reproduce

  1. Upgrade from MAUI 10.0.31 to 10.0.40

  2. Use AvatarView in XAML

  3. Run simple attached project. Added an AvatarView to the MainPage.xaml.cs.

  4. Observe exception at startup.

  5. Change Microsoft.Maui.Controls to version 10.0.31.

  6. Run

  7. Works as expected.

Link to public reproduction project repository

https://github.com/solomonfried/AvatarViewWithMaui10.0.40

Environment

- .NET MAUI: 10.0.40
- CommunityToolkit.Maui: 14.0.0
- Target Framework: .NET 10
- Platform: [Windows/Android/iOS/Mac] (only tested on Windows)

Anything else?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions