question

yangzhou-3555 avatar image
0 Votes"
yangzhou-3555 asked lextm answered

The Xamarin.Essential how to work at netstandard ?

Hello, i see xamarin.essential can work at netstandard of xamarin.form, but i see the source code, all are throw exception in the netstandard.share.cs, i know by ioc we can use interface to use platform implementation in the netstandard library, but xamarin.essential no interface, so i want know it how to work, i want create library to like this.

dotnet-xamarin
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

lextm avatar image
0 Votes"
lextm answered lextm edited

That simply indicates you didn't go through the whole documentation like this,

"Add the Xamarin.Essentials NuGet package to each project" is very important, as it allows platform specific projects (iOS, Android for example) to get the dependent assemblies with actual implementation, different from the assemblies for interfaces (code that only throws exceptions).

Again, dig into the entire code base and documentation, not merely a class/file, and that helps you understand how it actually works.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.