Open yangl1025 opened 1 month ago
looks like same issue as https://github.com/reactiveui/ReactiveUI/issues/3786#issuecomment-2059046449
see if the following workaround prevents the issue. you need one of these in app initialisation before ReactiveUI is called.
if you're not doing any custom Splat DI config.
ReactiveUI.PlatformRegistrationManager.SetRegistrationNamespaces(RegistrationNamespace.WPF);
if you're doing any custom config to Splat etc. you'll need something along the lines of. (you might want this version anyway so it's clearer when ReactiveUI is being set up)
Locator.CurrentMutable.InitializeSplat();
Locator.CurrentMutable.InitializeReactiveUI(RegistrationNamespace.WPF);
Describe the bug 🐞
.net 8 wpf ,ReactiveUI.WPF 20.1.63。windows desktop app, run err : “scan.server.exe”(CoreCLR: clrhost): 已加载“C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.6\UIAutomationProvider.dll”。 引发的异常:“System.IO.FileNotFoundException”(位于 System.Private.CoreLib.dll 中) 引发的异常:“System.IO.FileNotFoundException”(位于 System.Private.CoreLib.dll 中) 引发的异常:“System.IO.FileNotFoundException”(位于 System.Private.CoreLib.dll 中) 引发的异常:“System.IO.FileNotFoundException”(位于 System.Private.CoreLib.dll 中) 引发的异常:“System.IO.FileNotFoundException”(位于 System.Private.CoreLib.dll 中) 引发的异常:“System.IO.FileNotFoundException”(位于 System.Private.CoreLib.dll 中) 引发的异常:“System.IO.FileNotFoundException”(位于 System.Private.CoreLib.dll 中) 引发的异常:“System.IO.FileNotFoundException”(位于 System.Private.CoreLib.dll 中) 引发的异常:“System.IO.FileNotFoundException”(位于 System.Private.CoreLib.dll 中)
why ReactiveUI.XamForms? I not use this。
Step to reproduce
Reproduction repository
https://github.com/reactiveui/ReactiveUI
Expected behavior
This should happen...
Screenshots 🖼️
No response
IDE
No response
Operating system
No response
Version
No response
Device
No response
ReactiveUI Version
No response
Additional information ℹ️
No response