Iris Classon
Iris Classon - In Love with Code

Problem: BCL Portability Pack for NET Framework 4, Silverlight 4 and 5, and WP not installing

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.

BCL rolling back installation

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 :)

Comments

Leave a comment below, or by email.
jay
1/10/2013 8:31:57 AM
Thanks you!  I was stuck on this for a few hours and your solution worked. 
Iris Classon
1/10/2013 5:51:15 PM
Reply to: jay
Glad to be able to help :) 
M.P
2/12/2013 11:52:58 PM
Thanks. your solution worked. 


Last modified on 2012-11-02

comments powered by Disqus