[Bug]: Method not found: 'Splat.IMutableDependencyResolver Splat.Locator.get_CurrentMutable()'.
Describe the bug 🐞
After updated to 21.0.1 for my AvaloniaUI project, it throws this Exception during startup
Step to reproduce
RT
Reproduction repository
https://github.com/reactiveui/ReactiveUI
Expected behavior
It should launch
Screenshots 🖼️
No response
IDE
Visual Studio 2022
Operating system
No response
Version
No response
Device
No response
ReactiveUI Version
No response
Additional information ℹ️
No response
Need details of the exception
Need details of the exception
I'm getting the same exception in an Avalonia project after updating.
System.MissingMethodException
HResult=0x80131513
Message=Method not found: 'Splat.IMutableDependencyResolver Splat.Locator.get_CurrentMutable()'.
Source=Avalonia.ReactiveUI
StackTrace:
at Avalonia.ReactiveUI.AppBuilderExtensions.<>c.<UseReactiveUI>b__0_1()
at Splat.InternalLocator.RegisterResolverCallbackChanged(Action callback) in c:\temp\releaser\splat\src\Splat.Core\ServiceLocation\InternalLocator.cs:line 106
at Splat.AppLocator.RegisterResolverCallbackChanged(Action callback) in c:\temp\releaser\splat\src\Splat.Core\ServiceLocation\AppLocator.cs:line 73
at Splat.Locator.RegisterResolverCallbackChanged(Action callback) in c:\temp\releaser\splat\src\Splat\ServiceLocation\Locator.cs:line 64
at Avalonia.ReactiveUI.AppBuilderExtensions.<>c.<UseReactiveUI>b__0_0(AppBuilder _)
at Avalonia.AppBuilder.SetupUnsafe()
at Avalonia.AppBuilder.Setup()
at Avalonia.AppBuilder.SetupWithLifetime(IApplicationLifetime lifetime)
at ...
With Avalonia, it's likely an out of date reference to Splat then in Avalonia. Been some changes lately.
Avalonia is getting us to take over the project, there will be a official ReactiveUI.Avalonia project soon, we pretty much got most of it going, just waiting on the Avalonia team to give us the last ok on it.
Just noticed that it is Avalonia.ReactiveUI and not ReactiveUI.Avalonia. Thanks for the heads-up. Here is the the bug report in the Avalonia repository: https://github.com/AvaloniaUI/Avalonia/issues/19601