Bug 22314 - [XVS.iOS 3.5] N-th order assembly dependencies not included in the final app
Summary: [XVS.iOS 3.5] N-th order assembly dependencies not included in the final app
Status: VERIFIED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 3.5
Hardware: PC Windows
: Normal critical
Target Milestone: 3.5
Assignee: Adrian Alonso
URL:
Depends on:
Blocks:
 
Reported: 2014-08-22 15:57 UTC by Brendan Zagaeski (Xamarin Team, assistant)
Modified: 2014-08-26 11:25 UTC (History)
6 users (show)

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


Attachments
Test case (16.58 KB, application/zip)
2014-08-22 15:57 UTC, Brendan Zagaeski (Xamarin Team, assistant)
Details
Diagnostic build logs (148.68 KB, application/zip)
2014-08-22 15:58 UTC, Brendan Zagaeski (Xamarin Team, assistant)
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 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:
VERIFIED FIXED

Description Brendan Zagaeski (Xamarin Team, assistant) 2014-08-22 15:57:10 UTC
Created attachment 7776 [details]
Test case

N-th order assembly dependencies not included in the final app.


The symptoms of this bug are basically identical to bug 16363. I'm filing it again separately just because bug 16363 is rather old, and the underlying cause of the problem has likely changed since then. I've also created a new test case for this bug using Xamarin 3.5 to make sure there was nothing missing from the old test case.


## Steps to reproduce

Build and run the attached test case using Visual Studio (I tested on the "iPhone Retina (4-inch) iOS 7.1" simulator).



## Result on Xamarin 3.5.39 + Xamarin.iOS 7.4.0.104

> Unhandled Exception:
> System.IO.FileNotFoundException: Could not load file or assembly 'ClassLibrary2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
> File name: 'ClassLibrary2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
>   at iPhoneApp1.iPhoneApp1ViewController.ViewDidLoad () [0x00008] in c:\Users\Windows User\Desktop\iPhoneApp1\iPhoneApp1\iPhoneApp1ViewController.cs:30 
>   at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
>   at MonoTouch.UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0004c] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:39 
>   at iPhoneApp1.Application.Main (System.String[] args) [0x00001] in c:\Users\Windows User\Desktop\iPhoneApp1\iPhoneApp1\Main.cs:17 
> 2014-08-22 15:16:02.416 iPhoneApp1[85115:70b] Unhandled managed exception: Could not load file or assembly 'ClassLibrary2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. (System.IO.FileNotFoundException)
>   at iPhoneApp1.iPhoneApp1ViewController.ViewDidLoad () [0x00008] in c:\Users\Windows User\Desktop\iPhoneApp1\iPhoneApp1\iPhoneApp1ViewController.cs:30 
>   at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
>   at MonoTouch.UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0004c] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:39 
>   at iPhoneApp1.Application.Main (System.String[] args) [0x00001] in c:\Users\Windows User\Desktop\iPhoneApp1\iPhoneApp1\Main.cs:17


## Result on Xamarin 3.3.47 + Xamarin.iOS 7.2.6.28

No error.



Thanks!
Comment 1 Brendan Zagaeski (Xamarin Team, assistant) 2014-08-22 15:58:26 UTC
Created attachment 7777 [details]
Diagnostic build logs

Diagnostic build output from both Xamarin 3.3.47 and Xamarin 3.5.39.
Comment 4 Mohit Kheterpal 2014-08-26 05:46:18 UTC
I have checked this issue with X.VS 3.5.51
(4cc27565ba83fc6ad690f708f553e9ba8300898b) + X.iOS 7.4.0.107, but I am getting
same issue. 

So Please confirm whether the fix would be available in 3.5 milestone or we
need to update Target milestone from 3.5 to other version.

As this issue is not fixed in XVS 3.5.51, I am reopening this issue.
Comment 6 Mohit Kheterpal 2014-08-26 11:25:07 UTC
Thanks Adrian

I have checked this issue with XVS 3.5.55 + X.iOS 7.4.0.108 and I am able to
deploy application on simulator/device successfully.

Hence closing this issue.