[16:15:30.915] [ERR] Xunkong.Desktop.ViewModels.SettingViewModel
Start game in app.
System.InvalidCastException: Specified cast is not valid.
at WinRT.IObjectReference.As[T](Guid iid)
at Windows.ApplicationModel.Package.Make_objRef_globalWindows_ApplicationModel_IPackage8()
at Windows.ApplicationModel.Package.get__objRef_global__Windows_ApplicationModel_IPackage8()
at Windows.ApplicationModel.Package.get_InstalledPath()
at Xunkong.Desktop.Services.BackgroundService.StartGameAsync()
at Xunkong.Desktop.ViewModels.SettingViewModel.StartGameAsync()
提示InvalidCastException。
log文件内容: [16:15:30.909] [INF] Xunkong.Desktop.Services.BackgroundService Start to start game.
[16:15:30.915] [INF] Xunkong.Desktop.Services.BackgroundService Exe path is C:\Program Files\Genshin Impact Chn\Genshin Impact Game\YuanShen.exe.
[16:15:30.915] [ERR] Xunkong.Desktop.ViewModels.SettingViewModel Start game in app. System.InvalidCastException: Specified cast is not valid. at WinRT.IObjectReference.As[T](Guid iid) at Windows.ApplicationModel.Package.Make_objRef_globalWindows_ApplicationModel_IPackage8() at Windows.ApplicationModel.Package.get__objRef_global__Windows_ApplicationModel_IPackage8() at Windows.ApplicationModel.Package.get_InstalledPath() at Xunkong.Desktop.Services.BackgroundService.StartGameAsync() at Xunkong.Desktop.ViewModels.SettingViewModel.StartGameAsync()