adrianstevens / Xamarin-Plugins

Cross-platform Plugins for Xamarin, Xamarin.Forms and Windows
https://www.nuget.org/packages/Xam.Plugin.SimpleAudioPlayer/
MIT License
133 stars 53 forks source link

.net standard 2.0 support #46

Closed vwilson317 closed 5 years ago

vwilson317 commented 5 years ago

Any future plans to support .net standard 2.0?

WinBase commented 5 years ago

yes, i wondered the same. i downloaded the project , updated the nugets to the latest versions and changed the target frameworks to netstandard 2.0, and get a compile error in CrossSimpleAudioPlayer.cs at line:

return new SimpleAudioPlayerImplementation();

The type or namespace name 'SimpleAudioPlayerImplementation' could not be found (are you missing a using directive or an assembly reference?)

im a newbie at cross platform and xamarin so not sure how to change it, so please advise

adrianstevens commented 5 years ago

I just tested this yesterday and it is working on .NET Standard 2.0.

You can see an example here: https://github.com/adrianstevens/Xamarin-Forms/tree/master/Radio and the current sample is using a .NET Standard 2.0 library https://github.com/adrianstevens/Xamarin-Plugins/tree/master/SimpleAudioPlayer/Samples

Take a look at the example above and feel free to reopen this issue if you still can't get it working.

Cheers!

I'll