icsharpcode / AvaloniaILSpy

Avalonia-based .NET Decompiler (port of ILSpy)
1.55k stars 173 forks source link

7.0 RC2 Crash when selecting a nupkg #80

Open fubar-coder opened 3 years ago

fubar-coder commented 3 years ago

I downloaded the nupkg from https://www.nuget.org/packages/Synercoding.UnitOfWork/ and I got the following error:

Sorry, we crashed
Avalonia.Markup.Xaml.XamlLoadException: No precompiled XAML found for ICSharpCode.ILSpy.NugetPackageBrowserDialog, make sure to specify x:Class and include your XAML file as AvaloniaResource
   at Avalonia.Markup.Xaml.AvaloniaXamlLoader.Load(Object obj) in /_/src/Markup/Avalonia.Markup.Xaml/AvaloniaXamlLoader.cs:line 26
   at ICSharpCode.ILSpy.NugetPackageBrowserDialog.InitializeComponent() in /home/runner/work/AvaloniaILSpy/AvaloniaILSpy/ILSpy.Core/NugetPackageBrowserDialog.xaml.cs:line 71
   at ICSharpCode.ILSpy.NugetPackageBrowserDialog..ctor(LoadedNugetPackage package, WindowBase owner) in /home/runner/work/AvaloniaILSpy/AvaloniaILSpy/ILSpy.Core/NugetPackageBrowserDialog.xaml.cs:line 59
   at ICSharpCode.ILSpy.MainWindow.LoadAssemblies(IEnumerable`1 fileNames, List`1 loadedAssemblies, Boolean focusNode) in /home/runner/work/AvaloniaILSpy/AvaloniaILSpy/ILSpy.Core/MainWindow.xaml.cs:line 1134
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__139_0(Object state)
   at Avalonia.Threading.AvaloniaSynchronizationContext.<>c__DisplayClass5_0.<Post>b__0() in /_/src/Avalonia.Base/Threading/AvaloniaSynchronizationContext.cs:line 33
   at Avalonia.Threading.JobRunner.RunJobs(Nullable`1 priority) in /_/src/Avalonia.Base/Threading/JobRunner.cs:line 37
   at Avalonia.X11.X11PlatformThreading.HandleX11(CancellationToken cancellationToken)
   at Avalonia.X11.X11PlatformThreading.RunLoop(CancellationToken cancellationToken) in /_/src/Avalonia.X11/X11PlatformThreading.cs:line 245
   at Avalonia.Threading.Dispatcher.MainLoop(CancellationToken cancellationToken) in /_/src/Avalonia.Base/Threading/Dispatcher.cs:line 62
   at Avalonia.Controls.ApplicationLifetimes.ClassicDesktopStyleApplicationLifetime.Start(String[] args) in /_/src/Avalonia.Controls/ApplicationLifetimes/ClassicDesktopStyleApplicationLifetime.cs:line 117
   at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime[T](T builder, String[] args, ShutdownMode shutdownMode) in /_/src/Avalonia.Controls/ApplicationLifetimes/ClassicDesktopStyleApplicationLifetime.cs:line 148
   at ICSharpCode.ILSpy.Program.Main(String[] args) in /home/runner/work/AvaloniaILSpy/AvaloniaILSpy/ILSpy/Program.cs:line 22

OS: Ubuntu 21.10 x64