Hristo Alexsiev
Hristo Alexsiev

Reputation: 146

usin Simple.OData.Client at ||Xamarin app that targets .Net standard

Hello I have started building a Xamarin forms app that will consume OData service. In most examples suggest to use Simple.OData.Client but when I add the nugget package I get the following Warrning.

Package 'Simple.OData.Client 4.29.0' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.

PS : I have been away from .net since 3.5 so if someone shed some light about Core .Standard and the basic framework it will be great. Since I read a lot but I am not 100% sure I get the full concept

Upvotes: 0

Views: 232

Answers (1)

JH_Dev
JH_Dev

Reputation: 446

Essentially the NuGet you are trying to consume is not compatible with .net standard 2.0 yet.

One small annoyance of the move to .netstandard is that any NuGet packages that wish to be consumed by .netstandard projects must be updated.

A short-term solution would be to use a more up to date client for OData like the following:

OData Nuget

UPDATE:

The package you are trying to consume has been updated to support .netStandard 2.0.

You just need to consume the pre-release version:

beta version

here is a link to the project owner discussing the changes

Github Issue

Upvotes: 1

Related Questions