我试图使用Xamarin.Forms将一个Urho应用程序嵌入到可移植项目中定义的一些通用UI中。
它能在Android上工作,所以这很好!
Xamarin UrhoSharp特性示例适用于UWP,但是UI不是跨平台的,所以如果可能的话,我想避免这种情况。
在UWP x86/32位上,这似乎是唯一受支持的config (?),我得到了这个例外:
无法加载DLL‘mono’:找不到指定的模块。( HRESULT: 0x8007007E例外)
at Urho.Sdl.SDL_SetMainReady()
at Urho.UWP.UrhoSurface.Run(Type appType, String[] customAssetsPaks, ApplicationOptions opt)
at Urho.Forms.UwpSurfaceRenderer.UrhoLauncher(Type type, ApplicationOptions opts)
at Urho.Forms.UrhoSurface.<Show>d__4`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at XamarinTest.SessionPage.<OnAppearing>d__13.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state)
at System.Threading.WinRTSynchronizationContext.Invoker.InvokeCore()mono-urho.dll位于/bin/x86/debug中(复制自包.)。
我对UWP项目的参考:
我查看了dependency的DLL,但我怀疑它对UWP并没有多大用处。它找到了DirectX DLL,但没有找到UWP运行时,可能是因为路径不一样。
有什么想法吗?
发布于 2016-11-09 08:06:10
我的笔记本电脑上有一个挂起的Windows 10更新程序,因为它在夜间关闭并断开连接,所以一直没有安装。
安装失败(到1607),然后窗口回滚更新。
然后,Urho又开始在UWP工作了!
¯\_(ツ)_/
发布于 2016-10-16 02:25:37
我遇到了与未修改的urhosharp特性样例项目(https://github.com/xamarin/urho-samples/tree/master/FeatureSamples/UWP)构建相同的问题。
只有在本地计算机/模拟器上运行时,才会加载,在电话模拟器上运行会导致您引用的异常。
通过缺少子依赖项解决了我的问题;project参考: Visual C++ 2015应用程序
添加参考->通用Windows ->Extensions -> "Visual C++ 2015通用Windows平台应用程序运行时“
HTH
https://stackoverflow.com/questions/39894134
复制相似问题