Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8926633
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T08:01:07+00:00 2026-06-15T08:01:07+00:00

I am coding up a Portable Class Library (PCL) that is setup for .NET

  • 0

I am coding up a Portable Class Library (PCL) that is setup for .NET 4.5, Windows RT and Windows Phone 8.

I want to find the min value in a Dictionary. Searching the web says that MoreLinq is the fastest way to do that.

So I added a reference and it compiled fine.

But I am not sure if I have “Broken Containment” for my PCL.

Will the compiler tell me if I reference something that does not fit in the constraints of the PCL?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T08:01:08+00:00Added an answer on June 15, 2026 at 8:01 am

    Unfortunately the compiler doesn’t do such a check for you.

    I tried creating a .NET 4 class library using classes from System.Data namespace which obviously isn’t PCL compatible. I had no problems referencing and using it from a portable class library project for .NET 4.5, Windows Store and Windows Phone 8. Even more: I managed to reference this portable library from a Windows Store app, compile it and run it. Of course running the Windows App Certification Kit revealed that and the validation failed.

    Your best bet to detect these problems in advance is to add the reference via NuGet which checks whether the package supports your target profile. Of course this requires the NuGet package to be prepared in as pecific way.

    For some third party libraries such a package might not be available but it might still be PCL compatible. In such cases I suggest you download the sources and try to create a portable class library with the right targets yourself. This way the compiler will warn you about compatibility problems so long as it only references system assemblies.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Coding in VB2008 with Net Framework 3.5 in Windows 7-32 bit. The code: TempUserPath
Coding Platform ASP.NET 4.0 WebForms I have two pages that are relevant here Login.aspx
During this year there will be coming couple sub-600€ multi-touch portable computers that contain
Coding Platform ASP.NET 4.0 WebForms on IIS7.5 If I request a page blahblah.aspx which
Coding Platform: ASP.NET WebForms4.0 VB Installed Facebook and FacebookWeb and when I run the
Coding Language: C# Framework: .NET We have built a software, which among many other
From my basic understanding in Object Oriented coding, PHP in my case, you want
Coding in ASP.NET 4.0 / javascript/ jQuery/ WebServices The Scenario I have an analytics
Coding Platform: ASP.NET 4.0 C# Consider the following scenario. I am uploading a file
Coding in VB.Net Hi guys I've got this problem where I'm trying to assign

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.