Bug 45787 - Libraries dependent on a PCL 4.6 cannot be compiled with Xamarin Studio on OS X
Summary: Libraries dependent on a PCL 4.6 cannot be compiled with Xamarin Studio on OS X
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: XI 10.0 (iOS10)
Hardware: PC Mac OS
: --- normal
Target Milestone: Future Cycle (TBD)
Assignee: Alexander Köplinger [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2016-10-21 14:01 UTC by Dimitar Dobrev
Modified: 2017-06-14 00:09 UTC (History)
3 users (show)

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


Attachments
Test Case (16.45 KB, application/zip)
2016-10-23 20:38 UTC, Alex Soto [MSFT]
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 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 Dimitar Dobrev 2016-10-21 14:01:11 UTC
I have a regular (non-portable) MonoTouch library dependent on a portable library which uses .NET 4.6 (profile 44). When trying to compile the MonoTouch library with Xamarin Studio on OS X, I get:

 The type `System.Object' is defined in an assembly that is not referenced. Consider adding a reference to assembly `System.Runtime, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

It works fine when compiling the exact same code with Visual Studio.






Xamarin Studio Community
Version 6.1.1 (build 15)
Installation UUID: 597d6e81-1f6e-48bd-9b8b-a6713e5c6c31
Runtime:
	Mono 4.6.1 (mono-4.6.0-branch-c8sr0/ef43c15) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 406010005

NuGet
Version: 3.4.3.0

Xamarin.Profiler
Version: 0.0.0.0
Location: /Applications/XamarinProfiler.Mac.app/Contents/MacOS/XamarinProfiler.Mac

Xamarin.Android
Not Installed

Xamarin Android Player
Not Installed

Apple Developer Tools
Xcode 8.0 (11246)
Build 8A218a

Xamarin.Mac
Not Installed

Xamarin.iOS
Version: 10.0.1.10 (Xamarin Studio Community)
Hash: ad1cd42
Branch: cycle8-sr0-xi
Build date: 2016-10-03 15:18:44-0400

Build Information
Release ID: 601010015
Git revision: fa52f02641726146e2589ed86ec4097fbe101888
Build date: 2016-09-22 08:03:02-04
Xamarin addins: 75d65712af93d54dc39ae4c42b21dfa574859fd6
Build lane: monodevelop-lion-cycle8-sr0

Operating System
Mac OS X 10.11.6
Darwin Dimitars-MacBook-Pro-2.local 15.6.0 Darwin Kernel Version 15.6.0
    Mon Aug 29 20:21:34 PDT 2016
    root:xnu-3248.60.11~1/RELEASE_X86_64 x86_64
Comment 1 Alex Soto [MSFT] 2016-10-23 20:38:48 UTC
Created attachment 18186 [details]
Test Case

To reproduce:

- Open Bug45787.sln
- Try to build

Reported error will happen.
Comment 2 Alex Soto [MSFT] 2016-10-23 20:40:38 UTC
I can reproduce reported issue, I have attached a test case that reproduces described scenario on comment #0
Comment 3 Dimitar Dobrev 2016-10-28 11:53:58 UTC
Any approximate release date for the fix?
Comment 4 Marek Safar 2016-11-24 11:33:40 UTC
This looks like xbuild issue where PCL library reference does not add PCL library dependencies.
Comment 5 Alexander Köplinger [MSFT] 2017-06-14 00:09:14 UTC
This seems to work now in VS4Mac (with both xbuild and msbuild).