New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the package does not contain any assembly references or content files that are compatible with that framework #1325
Comments
Yep, this package won't apply. Profile24 is equivalent to net45+sl5, but the package doesn't support SL5 at all. It'd be nice if nuget didn't just throw up profile numbers in the error messages, that'd make this a bit easier to understand. Perhaps something like "You are trying to install this package into a project that targets a portable profile supporting .NET Framework 4.5 and Silverlight 5 but the package doesn't contain any..." |
@ericstj So the solution would be to add a Silverlight5 lib target to my package ? |
I added Silverlight5 target. This did not help. Could not install package 'WebSocket.Portable.Core 1.2.4'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.0,Profile=Profile24', 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. |
Is the package available anywhere, along with the project you are trying to install it into? |
@yishaigalatzer The githup / nuget package is available at https://github.com/NVentimiglia/WebSocket.Portable I am importing this package into a new PCL library (fresh from visual studio). |
Thanks for getting back. What exact flavor of pcl? |
A new one. I tried a number of combinations including one that targeted the same platforms as the websocket library and another that targeted a smaller subset. Xamarin iOS, Xamarin Droid, and .net 4.5 were my minimal. |
Would you mind sharing your project, to make sure we are verifying the exact same thing you are using. |
@ericstj do you have any more suggetions on this? @NVentimiglia please update to NuGet 3.2 for the continuation of this discussion |
Sorry for the delay, have been out of town.
Consider that PCL requires a dll to compile against. It needs one that supports all the targets. So the project you are installing into is targeting .NETPortable,Version=v4.0,Profile=Profile24. Nuget translates this to portable-net45+sl5. If you check the PCL targeting dialog in the project properties of the project you'd see something similar. Now consider if any of the folders support both net45 and sl5. From the latest in GitHub So, if you wanted to use this package in a PCL that includes SL5 support you need to build the PCL (either a single DLL, or a separate DLL) to a PCL profile that includes SL5. After doing this you'd have a folder in your package like the following: |
@ericstj That worked. I manually adjusted my nupkg file with a target for portable-net45+win+wpa81+wp80+SL5+Xamarin.iOS10+MonoAndroid10+MonoTouch10 |
From @NVentimiglia on September 2, 2015 22:35
I am trying to install a nuget package and failing. Both the nuget package and the importing project are of the same type (PCL target 259). When I try to import the project, I get this error.
Could not install package 'WebSocket.Portable.Core 1.2.2'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.0,Profile=Profile24', 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.
After emailing myself the issue, I tried to republishing the nuget package using the manager tool (vs 1.2.3) and that did not work. Here is my nuget package explorer.
Using VS 2015 and NuGet 3.1.6
Copied from original issue: NuGet/NuGetGallery#2654
The text was updated successfully, but these errors were encountered: