I couldn't find any other questions on this...so I must be doing something wrong. I have never used NuGet before, so my problem could very well be there.
Anyways, I am making a WP8 app in VS2012. I went Project > Manage NuGet Packages > Online > Facebook. It is version 6.4.0. When I hit install, I get the following error:
Could not install package 'Facebook 6.4.0'. You are trying to install
this package into a project that targets 'WindowsPhone,Version=v8.0',
but the package does not contain any assembly references that are
compatible with that framework. For more information, contact the
package author.
Any idea how to resolve this?
I had the same problem, for me updating Nuget package installer worked. Initial version was 2.0 and it got upgraded to 2.5. Go to Tools=> Extensions and Updates => Updates => Visual Studio Gallery. There you can see update available for Nuget installer. After updating Nuget try installing facebook and facebook client packages.Hope this works....
The error you're seeing means that the package you tried to install for Nuget is incompatible with WP7/8 projects. Look at this Nokia article that explains how to use a modified version of the Facebook Graph API in a WP7/8 project.
I also faced this issue but, the previous version works fine.
go to tools => library package manager=>package manager console
and type
Install-Package Facebook -Version 5.3.2.0
and press enter.
Hope this will help :)
Related
I have researched this for hours and can't figure out how to fix this issue. Every time I launch my app i get the error stated in the title. I currently have sql-net by Frank Krueger nuget package installed. I reference 'using SQLite;' in my code which looks at SQLite.cs and SQLiteAsync.cs. I was reading that installing the nuget package sql-net-pcl by Frank Krueger can resolve this issue? If so, how would I use this since I can't reference the two SQLite classes anymore if I do install it.
I currently have sql-net by Frank Krueger nuget package installed.
You're using the old SQlite version which is not compatible with Android 7.0 and higher version, if you installed the some SQLite relative library, please refer to this doc: Preparing for Native Library Linking Changes in Android N, and try to update your library as the doc suggested.
For sql-net package, you can try to install the sqlite-net-pcl package.
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 was working with Unity and Hololens and tried to establish connection to Azure Iot Hub via MQTT protocol. Microsoft provides a tutorial for getting started with Azure IoT Hub in C#, but unfortunately, I encountered a problem with the tutorial:
In the picture above, I have selected Microsoft.Azure.Device NuGet package for installation. I have tried version 1.0.0 and also the latest one available, 1.2.4. The projects were automatically generated by Unity and that is probably the reason, why I do encounter this problem. Which problem? After I try to install the selected NuGet, I encounter the following error:
Could not install package 'Microsoft.Azure.Devices 1.2.4'. You are
trying to install this package into a project that targets
'.NETFramework,Version=v3.5,Profile=Unity Full v3.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.
I was like, "Hmm, I must have wrong .NET framework version. I wonder if I can change that..." I tried to go to project properties like this
Microsoft advises changing .NET framework from Properties context menu item:
https://technet.microsoft.com/fi-fi/library/bb772098(v=vs.90).aspx (4.24.2017)
https://msdn.microsoft.com/en-us/library/bb398202(v=vs.100).aspx (4.24.2017)
However, this feature must be blocked by something, because the view that is supposed to open flashes white and disappears immediately. I suppose Unity doesn't like people tinkering with project properties, but what else can I do? Incompatible .NET framework issue needs to be resolved, so that the NuGet package can be installed, but how do I do that?
In short, how to install Microsoft.Azure.Devices NuGet package for Unity?
Sorry, this isn't possible due Unity's restriction to .net 3.5.
To be exactly, they use a custom version of mono-2.
You could try the new (experimental) .net 4.6 settings in Unity 5.6.
https://forum.unity3d.com/threads/upgraded-mono-net-in-editor-on-5-5-0b4.433541/
I just downloaded the XamarinEvolve project from GitHub and when trying to compile it on Microsoft Visual Studio Professional 2015 I got lot of errors as you can see on the following image:
Lot of these errors are related with the Google Cloud Messaging (GCM).
As you can see on the image above I downloaded the DLL from:
https://components.xamarin.com/view/googleplayservices-gcm
and added it to the project. But I think I'm still doing something wrong.
Any idea on how to fix this?
I have installed the project and build it on my machine. I have two issues with the project.
The first one is that need to have Android API 24. So, install it from Android SDK Manager.
The second one regarding the GCM. Please delete the GCM from your project using Package Manager Console using Uninstall-Package Xamarin.GooglePlayServices.Gcm. Then try reinstalling it using Install-Package Xamarin.GooglePlayServices.Gcm -Version 29.0.0.2
Clean, And Build.
Good morning all,
I am following the instructions on the azure site for adding offline sync capability in a Xamarin.Forms application.
I have added the package to the PCL without issue but when trying to add to the iOS client project I am getting the following error:
Could not install package 'Microsoft.Azure.Mobile.Client.SQLiteStore 2.1.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.
My project is well established in terms of completed code base so I downloaded the getting started app to test from scratch and the same issue remains.
Please help
Jordan Mazurke
Looks lite something is wrong with package 2.1.1.
Install version 2.1.0 instead and it should work!
See also Unable to install Microsoft.Azure.Mobile.Client.SQLiteStore 2.1.1 into Xamarin.iOS project with NuGet 2.12