UrhoSharp Xamarin.Form - 无法加载 dll 'mono-urho'
UrhoSharp Xamarin.Form - Unable to load dll 'mono-urho'
我已经为我的 Xamarin.Forms 项目实施了自定义控件,但我在尝试为 UWP 平台启动 UrhoSharp 引擎时遇到问题。
在 UrhoSufrace
控件上调用的 Run()
方法出现问题:
// this _engine object is my custom object with some application options
Control.Run<SceneEngine.EngineApplication>(_engine.EngineApplicationOptions);
已经有 但它没有解决我的问题。
我得到的异常:Unable to load DLL 'mono-urho': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
at Urho.Sdl.SDL_SetMainReady()
at Urho.UWP.UrhoSurface.Run(Type appType, ApplicationOptions options)
at Urho.UWP.UrhoSurface.Run[TGame](ApplicationOptions options)
at IM01App.UWP.Controls.Engine3dRenderer.<OnElementChanged>d__2.MoveNext()
我已经尝试使用不同版本的 UrhoSharp。
我还检查了 mono-urho.dll
文件是否存在,它可以在 bin\x86\
的 UWP 项目目录中找到。
所以问题是 mono-urho.dll
的路径有空格:
UWP\bin\x86\UWP - Visualization only\mono-urho.dll
UWP\bin\x86\UWP - Visualization only\Urho.dll
UWP\bin\x86\UWP - Visualization only\AppX\mono-urho.dll
UWP\bin\x86\UWP - Visualization only\AppX\Urho.dll
我的配置名称为:UWP - Visualization only
。
将其更改为:Debug
解决了这个问题:
UWP\bin\x86\Debug\mono-urho.dll
UWP\bin\x86\Debug\Urho.dll
UWP\bin\x86\Debug\AppX\mono-urho.dll
UWP\bin\x86\Debug\AppX\Urho.dll
我已经为我的 Xamarin.Forms 项目实施了自定义控件,但我在尝试为 UWP 平台启动 UrhoSharp 引擎时遇到问题。
在 UrhoSufrace
控件上调用的 Run()
方法出现问题:
// this _engine object is my custom object with some application options
Control.Run<SceneEngine.EngineApplication>(_engine.EngineApplicationOptions);
已经有
我得到的异常:Unable to load DLL 'mono-urho': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
at Urho.Sdl.SDL_SetMainReady()
at Urho.UWP.UrhoSurface.Run(Type appType, ApplicationOptions options)
at Urho.UWP.UrhoSurface.Run[TGame](ApplicationOptions options)
at IM01App.UWP.Controls.Engine3dRenderer.<OnElementChanged>d__2.MoveNext()
我已经尝试使用不同版本的 UrhoSharp。
我还检查了 mono-urho.dll
文件是否存在,它可以在 bin\x86\
的 UWP 项目目录中找到。
所以问题是 mono-urho.dll
的路径有空格:
UWP\bin\x86\UWP - Visualization only\mono-urho.dll
UWP\bin\x86\UWP - Visualization only\Urho.dll
UWP\bin\x86\UWP - Visualization only\AppX\mono-urho.dll
UWP\bin\x86\UWP - Visualization only\AppX\Urho.dll
我的配置名称为:UWP - Visualization only
。
将其更改为:Debug
解决了这个问题:
UWP\bin\x86\Debug\mono-urho.dll
UWP\bin\x86\Debug\Urho.dll
UWP\bin\x86\Debug\AppX\mono-urho.dll
UWP\bin\x86\Debug\AppX\Urho.dll