Bug 28899 - References with same Assembly Name do not reference correct platform
Summary: References with same Assembly Name do not reference correct platform
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Project Model ()
Version: 5.8
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: (C7)
Assignee: David Karlaš
URL:
: 37108 ()
Depends on:
Blocks:
 
Reported: 2015-04-08 15:44 UTC by Jon Douglas [MSFT]
Modified: 2015-12-21 16:25 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 or GitHub 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 Jon Douglas [MSFT] 2015-04-08 15:44:16 UTC
*Description

Using Xamarin Studio 5.8.2(build 7), there is an issue regarding the "Edit References" dialog.

Within the "Edit References" dialog, the user can go to the "Projects" tab and reference their various projects. If one has the same Assembly Name for their platform specific projects say the given structure:

iOS Projects > MyApp.Common

Android Projects > MyApp.Common

You will see the targeted framework reference, and also a reference for an incompatible target framework(MyApp.Common(Android) / MyApp.Common(iOS)). However once selecting the targeted framework reference, the actual behavior is the incompatible target framework reference is created instead. This of course causes compilation errors with incorrect references. However one can work around this via changing the references in the .csproj manually.

*Expected Behavior

Targeted framework reference is referenced instead of incompatible target framework reference.

*Current Scenario

Adding a project reference to an Android project:

Edit References -> Projects -> MyApp.Common(Android) -> Adds Reference to iOS MyApp.Common

*Expected Scenario

Adding a project reference to an Android project:

Edit References -> Projects -> MyApp.Common(Android) -> Adds Reference to Android MyApp.Common

*Visual Studio Behavior

VS behaves as in the expected behaviors above
Comment 3 xamarin-release-manager 2015-12-10 16:18:31 UTC
Fixed in version 6.0.0.2445 (master)

Author: David Karlas??
Commit: ff717670d446aa58f45110289097ced86833a569 (mono/monodevelop)
Comment 4 David Karlaš 2015-12-19 20:12:08 UTC
*** Bug 37108 has been marked as a duplicate of this bug. ***
Comment 5 Anton Venema 2015-12-21 16:16:14 UTC
David, what's the timeline on the release of Xamarin Studio 6? Can we get this patch applied to the version 5 branch?
Comment 6 David Karlaš 2015-12-21 16:25:05 UTC
Unfortunately change is too big to be part of Service release for XS 5.10, XS 6.0 will be part of next cycle, which is planned for beginning of next year(could be Jan, Feb, Mar...) before it comes to stable... But there is already XS6 Preview if you want to use XS6: http://download.xamarin.com/tvOS-preview/XamarinStudio-6.0.0.2572.dmg

If you want to go back to Stable or Alpha channel version of XS, just open Check for updates menu and update...