1

我已经为我的 Xamarin.Forms 项目实现了自定义控件,并且尝试为 UWP 平台启动 UrhoSharp 引擎时遇到问题。

问题出现在Run()调用UrhoSufrace控制的方法上:

// 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文件是否存在,并且可以在 UWP 项目目录中的bin\x86\.

4

1 回答 1

1

所以问题是这样的路径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
于 2016-12-09T11:07:18.663 回答