Nov 022012
 
 November 2, 2012  Posted by at 12:36 pm Uncategorized  Add comments

Today I was having some problems with a few libraries and asked on twitter for a few volunteer testers. I was unable to install Async for .NET Framework 4, Silverlight 4 and 5, and Windows Phone 7.5 as it’s dependency BCL Portability Pack for .NET Framework 4, Silverlight 4 and 5, and Windows Phone 7.5 kept rolling back the installation. I was getting this type of error message: (The packages let you use async and await in a portable class library even if it targets WP7.5 or silverlight)

Install failed. Rolling back…
install-package : Could not install package ‘Microsoft.Bcl 1.0.11-beta’. You are trying to install this package into a project that targets ‘.NETPortable,Version=v4.0,Profile=Profile7’, but the package does not contain any
assembly references that are compatible with that framework. For more information, contact the package author.

I emailed some of the devs that made the BCL and they were fast to reply even though they probably are at Build at an awesome party 😉 I promised to share the fix, and it turns out you just have to update Nuget. Hah. I had actually updated it, but hadn’t restarted VS so the changes would take effect. When I did a VS repair (other problems) today VS restarted, and therefore I assumed it had been a bug since the repair ‘fixed’ it.

So, update nuget and restart 🙂

  4 Responses to “Problem: BCL Portability Pack for .NET Framework 4, Silverlight 4 and 5, and WP not installing”

  1. […] Windows Store App & Portable Class Library: How to access and use PCL resources and Problem: BCL Portability Pack for .NET Framework 4, Silverlight 4 and 5, and WP not installing and WinRT app guide: Step 14: Adding layout awereness and snapped view, disabling portrait view […]

  2. Thanks you! I was stuck on this for a few hours and your solution worked.

  3. Thanks. your solution worked.

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)

What is 8 + 6 ?
Please leave these two fields as-is:
IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)