This is Xamarin's bug tracking system. For product support, please use the support links listed in your Xamarin Account.
Bug 43358 - XS doesn't show the correct list of references for an iOS project
Summary: XS doesn't show the correct list of references for an iOS project
Status: CONFIRMED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Project Model (show other bugs)
Version: 6.1.0 (C8)
Hardware: PC Mac OS
: --- normal
Target Milestone: master
Assignee: Lluis Sanchez
URL:
: 52453 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-08-15 18:22 UTC by James Moore
Modified: 2017-02-11 10:17 UTC (History)
4 users (show)

See Also:
Tags: BZRC8B4_C7SR1S1
Is this bug a regression?: Yes
Last known good build: Cycle 7 SR 1, XS 6.0.2 (build 73)


Attachments
xamarin studio project (3.43 MB, application/x-gzip)
2016-08-15 18:22 UTC, James Moore
Details

Description James Moore 2016-08-15 18:22:27 UTC
Created attachment 17034 [details]
xamarin studio project

The enclosed project has references to Xamarin Insights, but they're not shown in the References folder.
Comment 1 James Moore 2016-08-15 18:22:35 UTC
=== Xamarin Studio Professional ===

Version 6.1 (build 5338)
Installation UUID: 6dc077b1-7f04-4c1c-b481-1dcbb9a8b0a1
Runtime:
	Mono 4.6.0 (mono-4.6.0-branch/e571108) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 406000138

=== NuGet ===

Version: 3.4.3.0

=== Xamarin.Profiler ===

Not Installed

=== Apple Developer Tools ===

Xcode 8.0 (11228.2)
Build 8S193k

=== Xamarin.iOS ===

Version: 9.99.2.40 (Visual Studio Professional)
Hash: 40db5d1
Branch: cycle8
Build date: 2016-08-11 18:59:56-0400

=== Xamarin.Android ===

Version: 6.2.0.33 (Visual Studio Professional)
Android SDK: /Users/james/Library/Developer/Xamarin/android-sdk-mac_x86
	Supported Android versions:
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
		5.1    (API level 22)
		6.0    (API level 23)

SDK Tools Version: 25.2.1
SDK Platform Tools Version: 24.0.1
SDK Build Tools Version: 24

Java SDK: /Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home
java version "1.8.0_77"
Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)

Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

=== Xamarin Android Player ===

Not Installed

=== Xamarin.Mac ===

Version: 2.10.0.57 (Visual Studio Professional)

=== Build Information ===

Release ID: 601005338
Git revision: 860f5d2e358077f913badaf7b14c5532888bf12c
Build date: 2016-08-11 16:20:43-04
Xamarin addins: 8bea879bcb4de08213fff5812fd54323d79889d6
Build lane: monodevelop-lion-cycle8

=== Operating System ===

Mac OS X 10.11.6
Darwin retina.restphone.com 15.6.0 Darwin Kernel Version 15.6.0
    Thu Jun 23 18:25:34 PDT 2016
    root:xnu-3248.60.10~1/RELEASE_X86_64 x86_64
Comment 2 Matt Ward 2016-08-15 19:42:32 UTC
The project is using Paket so the references have conditions which I am guessing are not supported in Xamarin Studio.

  <Choose>
    <When Condition="$(TargetFrameworkIdentifier) == 'MonoAndroid'">
      <ItemGroup>
        <Reference Include="Xamarin.Insights">
          <HintPath>..\packages\Xamarin.Insights\lib\MonoAndroid10\Xamarin.Insights.dll</HintPath>
          <Private>True</Private>
          <Paket>True</Paket>
        </Reference>
      </ItemGroup>
    </When>
Comment 3 Matt Ward 2016-08-15 19:44:21 UTC
Although there is bug report #27124 about Paket style references which indicates that this was working at some point:
Comment 4 Matt Ward 2016-08-15 20:05:04 UTC
This works OK with 6.0.2 but not with 6.1. I tested a slightly older build of 6.1 (5308).
Comment 5 James Moore 2017-02-10 19:00:59 UTC
paket isn't all that relevant, it's just a problem not understanding how to read csproj files.  Anything (including humans) could add those sorts of references.

And please, please, please add some automated tests to check this.  People keep reintroducing this bug, and it drives us crazy.
Comment 6 Matt Ward 2017-02-11 10:17:53 UTC
*** Bug 52453 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.