Skip to content

AvaPlot doesn't work with Avalonia 11.0.0-preview2 #2183

@Xerxes004

Description

@Xerxes004

Bug Report

Issue: Avalonia 11 has API differences with 0.10.*

Reproducing: Create an Avalonia 11 app and try to use AvaPlot.

Upon view construction, observe the following exception:

System.IO.FileNotFoundException: Could not load file or assembly 'Avalonia.Input, Version=0.10.18.0, Culture=neutral, PublicKeyToken=c8d484a7012f9a8b'. The system cannot find the file specified.
File name: 'Avalonia.Input, Version=0.10.18.0, Culture=neutral, PublicKeyToken=c8d484a7012f9a8b'
   at MyView.InitializeComponent(Boolean loadXaml)
   at MyView..ctor() in MyView.axaml.cs:line 22
   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions)

Avalonia deprecated part of their API, and changed the name of a few events. I'm going to make a PR to fix this rather than discuss what's broken here.

System Details

  • ScottPlot Version: 4.1.58
  • Operating System: Windows 10
  • Application Type: Avalonia 11.0.0-preview2
  • .NET Version: .NET 7

Metadata

Metadata

Assignees

No one assigned

    Labels

    BUGunexpected behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions