1
votes

I am working with Xamarin cross platform application, while I am trying to add the reference from NuGet Package Manger I am getting an error like :

Severity Code Description Project File Line Suppression State Error Could not install package 'Microsoft.Azure.DocumentDB.Core 1.3.2'. 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.

1

1 Answers

0
votes

According to your description, I assumed that you are developing the Xamarin.Forms application. If you add Microsoft.Azure.DocumentDB.Core package into your PCL project, you would retrieve the error message as you mentioned.

You need to add the DocumentDB Client Library NuGet package into the specific platform projects in your Xamarin.Forms solution. For more details, you could refer to Consuming an Azure Cosmos DB Document Database.