While working with .NET Avalonia (XAML-based application) on Vscode in an OS (Ubuntu) environment and running it in debug. I get the below error message and the code exits and debug doesn’t work. I have tried to reinstall my troadex extension, docker prune all the unused images/containers, and reinstalled Vscode as well. I was able to debug and run the application in the past, but now this error below appears any time I’m trying to run debug or run the application.
Thank you.
System.DllNotFoundException: Unable to load shared library 'libICE.so.6' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibICE.so.6: cannot open shared object file: No such file or directory at Avalonia.X11.ICELib.IceAddConnectionWatch(IntPtr watchProc, IntPtr clientData) at Avalonia.X11.X11PlatformLifetimeEvents..ctor(AvaloniaX11Platform platform) in //src/Avalonia.X11/X11PlatformLifetimeEvents.cs:line 56 at Avalonia.X11.AvaloniaX11Platform.Initialize(X11PlatformOptions options) in //src/Avalonia.X11/X11Platform.cs:line 71 at Avalonia.AvaloniaX11PlatformExtensions.<>c__01.<UseX11>b__0_0() in /_/src/Avalonia.X11/X11Platform.cs:line 279 at Avalonia.Controls.AppBuilderBase1.Setup() in /_/src/Avalonia.Controls/AppBuilderBase.cs:line 303 at Avalonia.Controls.AppBuilderBase
1.SetupWithLifetime(IApplicationLifetime lifetime)`