When installing Xamarin.Auth to my project with NuGet, I get this error:
Could not install package 'Validation 2.0.4.14103'. 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.
This is because the NuGet dependency behaviour is set to 'lowest' and Validation 2.0.4.14103 is not compatible with Xamarin.iOS,Version=v1.0
Here is a workaround:
Install the Validation NuGet package first, using the latest version 2.3.7.
Then install Xamarin.Auth, and it should work as expected without the error.
Related
I am trying to install Microsoft.NETCore.Platform package from NuGet packages which is needed for system.text.encoding.codepages but I am getting an error as:
Microsoft.NETCore.Platforms could not be installed because it is not compatible with any of your project
Trying to install MiniProfiler v4 (4.0.0) and get an error related to the following:
Install-Package : Could not install package 'Microsoft.Extensions.DependencyInjection.Abstractions 2.0.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.6.2', 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.
However on nuget, it only really mentions .net framework:
https://www.nuget.org/packages/MiniProfiler/4.0.0
So I am working with .NETFramework,Version=v4.5 and I need to use Microsoft.Owin.Security.Google as well as Microsoft.Owin.Host.SystemWeb. However I'm getting the following error when trying to install said NuGet packages:
Could not install package 'Microsoft.Owin 4.0.0'. 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.
Is there another way to use Microsoft.Owin NuGet packages in a .NETFramework project?
Change your Framework version to v4.5.1 or later:
When I try to install Firebase Messaging Nuget package on the solution it gives me this error -
"Could not install package 'Xamarin.Firebase.Messaging 42.1021.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."
And for the android installation it says
"Could not install package 'Xamarin.Firebase.Messaging 42.1021.1'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.6,Profile=Profile44', 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."
How do I get it to install?
The solution is to use the latest stable Xamarin.Forms and have your project's compileSdkVersion (so Target Framework) set to 7.0 or higher. You will then be able to install newer versions of Android Support and therefore Google Play Services packages.
Happy coding!!
I wanted to install Taglib via NuGet in Visual Studio 2013. Is there any way?
I get the following error message:
Install failed. Rolling back...
Install-Package : Could not install package 'taglibcpp 1.9.1-beta8'. 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.