Bug 44450 - Despite using UrhoSharp via Nuget: DllNotFoundException: @rpath/Urho.framework/Urho
Summary: Despite using UrhoSharp via Nuget: DllNotFoundException: @rpath/Urho.framewor...
Status: CONFIRMED
Alias: None
Product: Workbooks & Inspector
Classification: Xamarin
Component: Client: Cross Platform (Shared Code) ()
Version: master
Hardware: PC Mac OS
: --- enhancement
Target Milestone: Future
Assignee: xamarininteractive
URL:
Depends on:
Blocks:
 
Reported: 2016-09-16 22:44 UTC by Larry O'Brien
Modified: 2016-10-20 21:56 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Workbook that fails. (2.39 KB, text/plain)
2016-09-16 22:44 UTC, Larry O'Brien
Details
screenshot showing exception (98.35 KB, image/png)
2016-09-16 22:44 UTC, Larry O'Brien
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 44450 on Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.
Related Links:
Status:
CONFIRMED

Description Larry O'Brien 2016-09-16 22:44:08 UTC
Created attachment 17559 [details]
Workbook that fails.

I am able to use UrhoSharp via Nuget in Xamarin.iOS from XS, but a workbook fails with the message: "DllNotFoundException: @rpath/Urho.framework/Urho" 

The Urho I get from Nuget is UrhoSharp.1.1.125

I've attached the workbook. The failure occurs at the last line, when I attempt to instantiate (but not yet run) my subclass of Urho.Application. The Workbook exception I see is:

null
TargetInvocationException: Exception has been thrown by the target of an invocation.
at object System.Reflection.MonoCMethod.InternalInvoke (object obj, object[] parameters)
at object System.Reflection.MonoCMethod.DoInvoke (object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)
at object System.Reflection.MonoCMethod.Invoke (BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)
DllNotFoundException: @rpath/Urho.framework/Urho
Comment 1 Larry O'Brien 2016-09-16 22:44:37 UTC
Created attachment 17560 [details]
screenshot showing exception
Comment 2 Sandy Armstrong [MSFT] 2016-09-16 23:43:54 UTC
Yeah. Native libraries in NuGets aren't currently supported (see the bottom of release notes such as https://developer.xamarin.com/releases/inspector/preview/inspector-0.10.0/).

https://github.com/xamarin/Workbooks/tree/master/wpf/PlanetEarth is an Urho workbook that "cheats" by bundling the libraries it needs.

On Mac, you might need to call OpenDynamicLibrary("relative/native/lib/path") in your workbook before #r referencing Urho.dll.