Bug 21675 - Library versions
Summary: Library versions
Status: RESOLVED INVALID
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: 5.1
Hardware: PC Windows
: --- normal
Target Milestone: master
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-07-29 17:13 UTC by Robert Fuszenecker
Modified: 2014-07-29 21:50 UTC (History)
1 user (show)

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


Attachments
Project (4.89 MB, application/zip)
2014-07-29 17:13 UTC, Robert Fuszenecker
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 INVALID

Description Robert Fuszenecker 2014-07-29 17:13:53 UTC
Created attachment 7526 [details]
Project

I have a c# library whose target framework is Mono/.NET 4.5. I can not reference it from another portable library whose target framework contains .NET 4.5 or later.

Project attached.
Comment 1 Mikayla Hutchinson [MSFT] 2014-07-29 21:50:25 UTC
A PCL project can only reference projects/libraries that target the same PCL profile. However, a PCL library/project can *be referenced* from projects that target any of the frameworks the PCL profile supports.

The reason why: suppose you had a PCL library that used a profile that supported .NET 4.5 and Windows Phone 8. That means you could reference the PCL project from a Windows Phone 8 project. It wouldn't make sense for the PCL project to be able to reference a .NET 4.5 library, because then a Windows phone project could indirectly reference a .NET 4.5 library, which would not work.