Using Cosmos db in Xamarin.Forms Cross Platform
See original GitHub issueHi, I am trying to use cosmos db in Xamarin.Forms project but it is showing below errors:
**Severity Code Description Project File Line Suppression State
Error Can not resolve reference: Microsoft.Azure.Cosmos.Direct
, referenced by Microsoft.Azure.Cosmos.Client
. Please add a NuGet package or assembly reference for Microsoft.Azure.Cosmos.Direct
, or remove the reference to Microsoft.Azure.Cosmos.Client
. MobileApp1.Android**
Also, when I am adding this nuget then another error is showing as below:
Severity Code Description Project File Line Suppression State
Error Can not resolve reference: Microsoft.Azure.Cosmos.Serialization.HybridRow
, referenced by Microsoft.Azure.Cosmos.Client
. Please add a NuGet package or assembly reference for Microsoft.Azure.Cosmos.Serialization.HybridRow
, or remove the reference to Microsoft.Azure.Cosmos.Client
. MobileApp1.Android
Please help me to out of this.
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (7 by maintainers)
Top GitHub Comments
@jameswhollister Interesting, depending on the order I build the project is succeeds or fails. Instead adding below to “XamarinAndCosmosNoLike” project, also will fix the issue, but consistently.
Apparently this is a known issue that has been open for a while: https://github.com/xamarin/xamarin-macios/issues/3949
@ausfeldt that did it. Thank you!