Hello,
I'm having trouble making a plugin for xamarin.forms.
To make the plugin I am following the following example:
https://docs.microsoft.com/es-es/nuget/guides/create-packages-for-xamarin
The problem is that when in my example xamarin.forms project, I try to access the Log method from the 'Core' project of my example, the dependency is not resolved well.
In the CrossLoggingLibrary.shared.cs class, the CreateMultiTargeting () method throws an exception:
static IMultiTargeting CreateMultiTargeting ()
{
#if NETSTANDARD1_0 || NETSTANDARD2_0
return null;
#else
return new MultiTargetingImplementation ();
#endif
}
It goes through the if netstandard ....
To call it, I do it as I have seen in this other example:
https://github.com/jsuarezruiz/Xamarin.Forms-Samples/tree/master/MultiTargeting
CrossMultiTargeting.Current.Sample ();
Any ideas? Thank you.