New Avalonia update 11.0.0 not working
Summary
In new Avalonia 11.0.0 Preview 4 LibVLCSharp crashes with the following error: System.IO.FileNotFoundException: 'Could not load file or assembly 'Avalonia.Styling, Version=0.10.7.0, Culture=neutral, PublicKeyToken=c8d484a7012f9a8b'. The system cannot find the file specified.' In the previous version 0.10.18 it worked fine.
Minimal project and steps to reproduce
To reproduce the bug, all you need is an example project and the latest version of Avalonia.
What is the current bug behavior?
Program crash.
What is the expected correct behavior?
Start the program and play the video.
Does it work on other plaforms? Does it work with the official VLC apps?
This bug is related to Avalonia View. Version of Avalonia: 11.0.0 Preview 4
Relevant LibVLC logs and/or screenshots
System.IO.FileNotFoundException
HResult=0x80070002
Message=Could not load file or assembly 'Avalonia.Styling, Version=0.10.7.0, Culture=neutral, PublicKeyToken=c8d484a7012f9a8b'. The system cannot find the file specified.
Source=LibVLCSharp.Avalonia
StackTrace:
at LibVLCSharp.Avalonia.VideoView.Attach()
at LibVLCSharp.Avalonia.VideoView.CreateNativeControlCore(IPlatformHandle parent)
at Avalonia.Controls.NativeControlHost.<UpdateHost>b__10_0(IPlatformHandle parent)
at Avalonia.Win32.Win32NativeControlHost.CreateNewAttachment(Func 2 create)
at Avalonia.Controls.NativeControlHost.UpdateHost()
at Avalonia.Visual.OnAttachedToVisualTreeCore(VisualTreeAttachmentEventArgs e)
at Avalonia.Layout.Layoutable.OnAttachedToVisualTreeCore(VisualTreeAttachmentEventArgs e)
at Avalonia.Controls.Control.OnAttachedToVisualTreeCore(VisualTreeAttachmentEventArgs e)
at Avalonia.Visual.OnAttachedToVisualTreeCore(VisualTreeAttachmentEventArgs e)
at Avalonia.Layout.Layoutable.OnAttachedToVisualTreeCore(VisualTreeAttachmentEventArgs e)
at Avalonia.Controls.Control.OnAttachedToVisualTreeCore(VisualTreeAttachmentEventArgs e)
at Avalonia.Visual.SetVisualParent(Visual value)
at Avalonia.Visual.SetVisualParent(IList children, Visual parent)
at Avalonia.Collections.AvaloniaList 1.NotifyAdd(T item, Int32 index)
at Avalonia.Controls.Presenters.ContentPresenter.UpdateChild(Object content)
at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize)
at Avalonia.Layout.Layoutable.Measure(Size availableSize)
at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding)
at Avalonia.Controls.Primitives.VisualLayerManager.MeasureOverride(Size availableSize)
at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize)
at Avalonia.Layout.Layoutable.Measure(Size availableSize)
at Avalonia.Layout.Layoutable.MeasureOverride(Size availableSize)
at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize)
at Avalonia.Layout.Layoutable.Measure(Size availableSize)
at Avalonia.Layout.Layoutable.MeasureOverride(Size availableSize)
at Avalonia.Controls.Window.MeasureOverride(Size availableSize)
at Avalonia.Controls.WindowBase.MeasureCore(Size availableSize)
at Avalonia.Layout.Layoutable.Measure(Size availableSize)
at Avalonia.Layout.LayoutManager.Measure(ILayoutable control)
at Avalonia.Layout.LayoutManager.ExecuteInitialLayoutPass()
at Avalonia.Controls.Window.ShowCore(Window parent)
at Avalonia.Controls.ApplicationLifetimes.ClassicDesktopStyleApplicationLifetime.ShowMainWindow()
at Avalonia.Controls.ApplicationLifetimes.ClassicDesktopStyleApplicationLifetime.Start(String[] args)
at AvaloniaApplicationPreMVVM.Program.Main(String[] args) in C:\Users\Admin\source\repos\AvaloniaApplicationPreMVVM\AvaloniaApplicationPreMVVM\Program.cs:line 13
Environment
- OS: Windows
- Version 11
- Device: PC x64
- LibVLC version and architecture VideoLAN.LibVLC.Windows 3.0.18 x64
- LibVLCSharp version LibVLCSharp.Avalonia 3.6.7