Exception on Linux - Could not load file or assembly Avalonia.Visuals Version=0.10.18.0
See original GitHub issueHey 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:
- Created 7 months ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
ImageBrush is not supported.
What version of library do you use and what version of Avalonia, those have to be same