I read on can pinvoke in .NET core, to access platform specific implementation of common functionality.
What if my platform specific functionality is in .NET already, how do I use it?
Say I have a .NET core library that expose GPS functionality. Though it obviously doesn’t work on its own since .NET core has no GPS support, it depends on the OS.
Say I include that in a .NET Core app.
And I deploy that .NET core app (NOT a platform specific app) on Android phone and iPad tablet.
And say I can write (thanks to Xamarin) some GPS common interface in plain .NET for iOS and Android with common interface.
How do I pick up this module on each platform?