[BUG] Method not found: 'Splat.IFullLogger Splat.LogHost.get_Default() for avalonia
BananaRush opened this issue · 2 comments
BananaRush commented
Hello, getting an exception after running avalonia project (Hello Word).
Steps To Reproduce
- Create Project Avalonia UI for .NET 5
- Install-Package Splat.Autofac -Version 10.0.1
- Run Project
Environment
Windows 10 Pro
dependencies
<PackageReference Include="Avalonia" Version="0.10.0" />
<PackageReference Include="Avalonia.Desktop" Version="0.10.0" />
<PackageReference Include="Avalonia.Diagnostics" Version="0.10.0" />
<PackageReference Include="Avalonia.ReactiveUI" Version="0.10.0" />
<PackageReference Include="Splat" Version="10.0.1" />
<PackageReference Include="Splat.Autofac" Version="10.0.1" />
Full
System.TypeInitializationException: "The type initializer for 'ReactiveUI.RxApp' threw an exception
MissingMethodException: Method not found: 'Splat.IFullLogger Splat.LogHost.get_Default()
StackTrace
at ReactiveUI.RxApp.set_MainThreadScheduler(IScheduler value) in D:\a\ReactiveUI\ReactiveUI\src\ReactiveUI\RxApp.cs:line 167
at Avalonia.ReactiveUI.AppBuilderExtensions.<>c__0`1.<UseReactiveUI>b__0_0(TAppBuilder _) in /_/src/Avalonia.ReactiveUI/AppBuilderExtensions.cs:line 21
at Avalonia.Controls.AppBuilderBase`1.Setup() in /_/src/Avalonia.Controls/AppBuilderBase.cs:line 306
at Avalonia.Controls.AppBuilderBase`1.SetupWithLifetime(IApplicationLifetime lifetime) in /_/src/Avalonia.Controls/AppBuilderBase.cs:line 180
at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime[T](T builder, String[] args, ShutdownMode shutdownMode) in /_/src/Avalonia.Controls/ApplicationLifetimes/ClassicDesktopStyleApplicationLifetime.cs:line 134
at HelloWorld.Program.Main(String[] args) in C:\Users\Alexander\source\repos\Kiosk\HelloWorld\Program.cs:line 10
code
class Program
{
public static void Main(string[] args) =>
BuildAvaloniaApp().StartWithClassicDesktopLifetime(args);
public static AppBuilder BuildAvaloniaApp() =>
AppBuilder.Configure<App>()
.UsePlatformDetect()
.UseReactiveUI();
}
glennawatson commented
You'll likely want to ask the avalonia guys to schedule a update to the latest rxui at some point. There was a breaking change. For the moment remove the splat reference
github-actions commented
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.