I'm tring to add the Microsoft.Cognitive.CustomVision.Prediction v1.0.0 NuGet package to my Xamarin PCL project, but it throws me this error.
Could not install package 'System.IO.FileSystem 4.3.0'. You are trying
to install this package into a project that targets
'.NETPortable,Version=v4.5,Profile=Profile49', 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.
Have anyone else managed to get this SDK up and running in an PCL (Portable Class Library)?
Related
Package installer I get this error, gave this error in other packages
Error Could not install package 'Xamarin.GooglePlayServices.Ads
60.1142.0'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile259', 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.
You need to install this package into your Android project, not your Portable Class Library. It is a Android-only library that cannot work cross-platform. As you can see on the project's GitHub page:
Xamarin creates and maintains Xamarin.Android bindings for the Google Play Services Client Library
The library is not a C# library, but it rather contains bindings to native Java-based libraries and hence compatible only with Android.
Getting error while adding some nuget packages to xamarin.android project.
Error-
Could not install package 'Xamarin.GooglePlayServices.Ads 42.1021.1'. You are trying to install this package into a project that targets 'MonoAndroid,Version=v6.0', but the package does not contain any assembly references or content files that are compatible with that framework.
The latest GooglePlayServices packages need Android 7 and above. In order for you to use in Android 6, you will need to use older packages.
Or you can just update the target platform to v7 and above.
I tried a lot, but I can't install Microsoft.ProjectOxford.Face NuGet into Xamarin Studio iOS project.
I got this error:
Could not install package 'Microsoft.ProjectOxford.Face 1.2.5.1'. You are trying to install this package into a project that targets 'Xamarin.iOS,Version=v1.0', 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.
I tried to update all packages, also Xamarin and still same problem. Only this package does not work - other like Newtonsoft.Json, Mircosoft.Net.HTTP and many other was installed correctly. I tried to install first Microsoft.BCL also Microsoft.BCL.Build and it also does not work.
Maybe you have any thoughts what can I do to make it work?
Unfortunately this is a problem with the Microsoft.ProjectOxford.Face 1.2.5.1 NuGet package itself. Whilst it has a portable class library (PCL) folder this does not map to a valid PCL profile:
portable-net45+wp80+win8+wpa81+aspnetcore50
If the aspnetcore50 part of that folder is removed then it would install into Xamarin.iOS. As it is, NuGet will not allow you to install it.
The only thing left you can do is unzip the NuGet package and try directly using the assembly. NuGet will not allow you to install it.
I believe there are plans to update the NuGet package to fix this, but that has not yet happened.
I am completely new to xamarin studio. I am trying to add a nuget package. using the add packages dialogue appears to be working however I get an error:
Attempting to gather dependency information for package 'SidebarNavigation.1.9.0.3' with respect to project 'helloios', targeting '.NETPortable,Version=v4.0,Profile=Profile344'
Attempting to resolve dependencies for package 'SidebarNavigation.1.9.0.3' with DependencyBehavior 'Lowest'
Resolving actions to install package 'SidebarNavigation.1.9.0.3'
Resolved actions to install package 'SidebarNavigation.1.9.0.3'
For adding package 'SidebarNavigation.1.9.0.3' to project 'helloios' that targets 'portable40-net45+sl5+win8+wp8+wpa81'.
Install failed. Rolling back...
Package 'SidebarNavigation.1.9.0.3' does not exist in project 'helloios'
Package 'SidebarNavigation.1.9.0.3' does not exist in folder '/Users/********/Projects/helloios/packages'
Could not install package 'SidebarNavigation 1.9.0.3'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.0,Profile=Profile344', 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.
This is the github page for the package.
https://github.com/jdehlin/Xamarin-Sidebar
I tried to use different PCL profiles to no effect. I'm not sure how to determine which profile should be used.
The package targets only "Xamarin.iOS". You can't reference it in a PCL that targets more than that, since any other platform wouldn't be able to use it.
Either don't use a PCL, or restrict the PCL to "Xamarin.iOS".
Since this seems to be a UI component, you should reference it from your main project instead, and maybe expose some functionality through services to the PCL, if needed.
I am using the NuGet Package Explorer to package an internal library which is then published to our private NuGet Feed. The package is very simple in that it only contains a single assembly and the pdb file for said assembly. The assembly was built in .NET 4.5 and I am trying to install the package into a project that also targets 4.5.
The error I am getting is:
You are trying to install this package into a project that targets
'.NETFramework,Version=v4.5', 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.
Package explorer looks like the below image:
For those of you not familiar with package explorer, the markup of the nuspec looks like this:
Can anyone point out what I am doing wrong here?