Bug 17353 - In Visual Studio Binding Libraries Don't Work In iOS Library Project
Summary: In Visual Studio Binding Libraries Don't Work In iOS Library Project
Status: RESOLVED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 1.8.x
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: 3.4 (Alpha)
Assignee: vsx
URL:
Depends on:
Blocks:
 
Reported: 2014-01-21 14:55 UTC by Nick Berardi
Modified: 2014-07-19 05:44 UTC (History)
5 users (show)

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

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 on Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Nick Berardi 2014-01-21 14:55:57 UTC
I just notice this today while trying to get my solution to debug with Visual Studio. Up until this point I have been doing all my development in Xamarin Studio.  However, I wanted to take advantage of Resharper's refactoring tools before we go live, so I fired up the project in Visual Studio and everything built and ran.  However I soon noticed exceptions such as those noted here:

https://bugzilla.xamarin.com/show_bug.cgi?id=11497

After further searching and troubleshooting, I discovered that other binding libraries that were reference on the main iOS app project were working as expected, just the one wasn't working including the native library after compilation.  The fact that this one wasn't working started me down the path of looking for differences and how they are used.  And the only one I could see was the fact that this one library was reference off a sub library and not the main project.  

As soon as I referenced this library off the main project, everything started working in Visual Studio.  

To make a long story short.  It appears that binding libraries referenced by iOS library projects don't pass through the native library to the iOS application that references it when built in Visual Studio, however this works fine in Xamarin Studio.

A temporary fix is to include the binding library directly in the iOS application.
Comment 1 Jose Miguel Torres 2014-01-29 07:10:48 UTC
Hey Nick,

Looking at it...
Comment 2 Jose Miguel Torres 2014-07-19 05:44:19 UTC
Tested with 3.1.224 and now it's working. Please, feel free to reopen it if this bug arises again...