Exception on Linux - Could not load file or assembly Avalonia.Visuals Version=0.10.18.0

See original GitHub issue

Hey there,

I tried to use SVG images in an AvaloniaUI cross platform project and could not use the helpers because of an exception (see below). Am I doing something wrong? I did not find any nuget dependency Avalonia.Visuals

Help would be really appreciated.

Thanks.

Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly 'Avalonia.Visuals, Version=0.10.18.0, Culture=neutral, PublicKeyToken=c8d484a7012f9a8b'. The system cannot find the file specified.

File name: 'Avalonia.Visuals, Version=0.10.18.0, Culture=neutral, PublicKeyToken=c8d484a7012f9a8b'
   at Avalonia.Svg.SvgImageExtension.ProvideValue(IServiceProvider serviceProvider)
   at toneUI.Views.MainView.!XamlIlPopulate(IServiceProvider, MainView) in /home/sandreas/projects/toneUI/toneUI/toneUI/Views/MainView.axaml:line 27
   at toneUI.Views.MainView.!XamlIlPopulateTrampoline(MainView)
   at toneUI.Views.MainView.InitializeComponent(Boolean loadXaml) in /home/sandreas/projects/toneUI/toneUI/toneUI/Avalonia.NameGenerator/Avalonia.NameGenerator.AvaloniaNameSourceGenerator/toneUI.Views.MainView.g.cs:line 22
   at toneUI.Views.MainView..ctor() in /home/sandreas/projects/toneUI/toneUI/toneUI/Views/MainView.axaml.cs:line 9
   at toneUI.Views.MainWindow.!XamlIlPopulate(IServiceProvider, MainWindow) in /home/sandreas/projects/toneUI/toneUI/toneUI/Views/MainWindow.axaml:line 11
   at toneUI.Views.MainWindow.!XamlIlPopulateTrampoline(MainWindow)
   at toneUI.Views.MainWindow.InitializeComponent(Boolean loadXaml, Boolean attachDevTools) in /home/sandreas/projects/toneUI/toneUI/toneUI/Avalonia.NameGenerator/Avalonia.NameGenerator.AvaloniaNameSourceGenerator/toneUI.Views.MainWindow.g.cs:line 23
   at toneUI.Views.MainWindow..ctor() in /home/sandreas/projects/toneUI/toneUI/toneUI/Views/MainWindow.axaml.cs:line 9
   at toneUI.App.OnFrameworkInitializationCompleted() in /home/sandreas/projects/toneUI/toneUI/toneUI/App.axaml.cs:line 20
   at Avalonia.Controls.AppBuilderBase`1.Setup() in /_/src/Avalonia.Controls/AppBuilderBase.cs:line 289
   at Avalonia.Controls.AppBuilderBase`1.SetupWithLifetime(IApplicationLifetime lifetime) in /_/src/Avalonia.Controls/AppBuilderBase.cs:line 148
   at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime[T](T builder, String[] args, ShutdownMode shutdownMode) in /_/src/Avalonia.Controls/ApplicationLifetimes/ClassicDesktopStyleApplicationLifetime.cs:line 208
   at toneUI.Desktop.Program.Main(String[] args) in /home/sandreas/projects/toneUI/toneUI/toneUI.Desktop/Program.cs:line 13

Issue Analytics

  • State:closed
  • Created 7 months ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
wieslawsoltescommented, Apr 13, 2023

ImageBrush is not supported.

1reaction
wieslawsoltescommented, Feb 28, 2023

What version of library do you use and what version of Avalonia, those have to be same

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found