Skip to content

Not working on Avalonia 12 #41

@TheBlackWolf88

Description

@TheBlackWolf88

Hello! I was updating my project to Avalonia 12, when I noticed IconPacks.Avalonia not working properly. Probably only a rebuild of the package is needed. A typo was fixed in Avalonia and probably your latest build is referencing the old namespace.
Avalonia docs

Unhandled exception. System.TypeLoadException: Could not load type 'Avalonia.Controls.PseudolassesExtensions' from assembly 'Avalonia.Base, Version=12.0.0.0, Culture=neutral, PublicKeyToken=c8d484a7012f9a8b'.
   at IconPacks.Avalonia.Core.PackIconControlBase.UpdateIconPseudoClasses(Boolean filled, Boolean outlined, Boolean flipped)
   at IconPacks.Avalonia.PackIconControl.UpdateData() in /_/src/IconPacks.Avalonia/PackIconControl.cs:line 208
   at IconPacks.Avalonia.PackIconControl.OnPropertyChanged(AvaloniaPropertyChangedEventArgs change) in /_/src/IconPacks.Avalonia/PackIconControl.cs:line 74
   at Avalonia.AvaloniaObject.OnPropertyChangedCore(AvaloniaPropertyChangedEventArgs change)
   at Avalonia.Animation.Animatable.OnPropertyChangedCore(AvaloniaPropertyChangedEventArgs change)
   at Avalonia.AvaloniaObject.RaisePropertyChanged[T](AvaloniaProperty`1 property, Optional`1 oldValue, BindingValue`1 newValue, BindingPriority priority, Boolean isEffectiveValue)
   at Avalonia.PropertyStore.EffectiveValue`1.NotifyValueChanged(ValueStore owner, StyledProperty`1 property, T oldValue)
   at Avalonia.PropertyStore.EffectiveValue`1.SetAndRaiseCore(ValueStore owner, StyledProperty`1 property, T value, BindingPriority priority, Boolean isOverriddenCurrentValue, Boolean isCoercedDefaultValue)
   at Avalonia.PropertyStore.EffectiveValue`1.SetLocalValueAndRaise(ValueStore owner, StyledProperty`1 property, T value)
   at Avalonia.PropertyStore.ValueStore.SetLocalValue[T](StyledProperty`1 property, T value)
   at Avalonia.PropertyStore.ValueStore.SetValue[T](StyledProperty`1 property, T value, BindingPriority priority)
   at Avalonia.AvaloniaObject.SetValue[T](StyledProperty`1 property, T value, BindingPriority priority)
   at IconPacks.Avalonia.PackIconControl.set_Kind(Enum value) in /_/src/IconPacks.Avalonia/PackIconControl.cs:line 63

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions