sestoft / C5

C5 generic collection library for C#/.NET
http://www.itu.dk/research/c5/
MIT License
1.03k stars 181 forks source link

Error when installing NuGet package in a portable .NET 4.5 project #23

Closed azzlack closed 8 years ago

azzlack commented 10 years ago

I get the following message when trying to install your package in a portable project targeting .NET 4.5.

AFAIK the fix is to create a new folder in your nuget lib folder named portable-net45+win+wpa81+wp80 and drop the C5.dll in it before publishing it again.

Installing 'C5 2.3.0.1'.
Successfully installed 'C5 2.3.0.1'.
Adding 'C5 2.3.0.1' to Provision.Core.
Uninstalling 'C5 2.3.0.1'.
Successfully uninstalled 'C5 2.3.0.1'.
Install failed. Rolling back...
Could not install package 'C5 2.3.0.1'. 
You are trying to install this package into a project that targets 'portable-net45+win+wpa81+wp80', 
but the package does not contain any assembly references or content files that are compatible with that framework. 
For more information, contact the package author.
AArnott commented 8 years ago

+1 It seems the source code is properly built to support wpa81, but the latest published nuget package doesn't reflect this.

ondfisk commented 8 years ago

Could you test it again

AArnott commented 8 years ago

It works for me now. Thanks.