Skip to content

Support Avalonia 12.0.1,Please #3329

@Spe1993

Description

@Spe1993

Mapsui Version
5.1.0-beta.5

Mapsui Platform
Mapsui.Avalonia

Device
Windows

Describe the bug
[Visual]Exception in render loop: 'System.TypeLoadException: Could not load type 'Avalonia.Platform.OptionalFeatureProviderExtensions' from assembly 'Avalonia.Base, Version=12.0.1.0, Culture=neutral, PublicKeyToken=c8d484a7012f9a8b'.
at Mapsui.UI.Avalonia.MapControl.MapsuiCustomDrawOperation.Render(ImmediateDrawingContext context)
at Mapsui.UI.Avalonia.MapControl.MapsuiCustomDrawOperation.Render(ImmediateDrawingContext context)
at Avalonia.Rendering.Composition.Drawing.Nodes.RenderDataCustomNode.Invoke(RenderDataNodeRenderContext& context)
at Avalonia.Rendering.Composition.Drawing.ServerCompositionRenderData.Render(IDrawingContextImpl context)
at Avalonia.Rendering.Composition.Server.ServerCompositionVisual.RenderContext.PreSubgraph(ServerCompositionVisual visual, Boolean& visitChildren)
at Avalonia.Rendering.Composition.Server.ServerCompositionVisual.ServerTreeWalker`1.Walk(TVisitor& visitor, ServerCompositionVisual root)
at Avalonia.Rendering.Composition.Server.ServerCompositionVisual.Render(IDrawingContextImpl canvas, LtrbRect clip, IDirtyRectTracker dirtyRects, Boolean renderChildren, Boolean skipRootVisualTransform, Boolean renderingToBitmapCache)
at Avalonia.Rendering.Composition.Server.ServerCompositionTarget.RenderRootToContextWithClip(IDrawingContextImpl context, ServerCompositionVisual root)
at Avalonia.Rendering.Composition.Server.ServerCompositionTarget.Render()
at Avalonia.Rendering.Composition.Server.ServerCompositor.RenderCore(Boolean catchExceptions)
at Avalonia.Rendering.DefaultRenderLoop.TimerTick(TimeSpan time)' (DefaultRenderLoop #35578258)

To Reproduce
Steps to reproduce the behavior:
1.Run Application

Screenshots

Image

Because the changes in Avalonia 12 were too significant, packages based on version 11 are no longer compatible with version 12.
So, could you please support 12 as soon as possible?Otherwise, I'll have to go back and develop the Winform version of Mapsui. Developing for both platforms is really frustrating.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions