Barsik the Cat
Barsik the Cat

Reputation: 373

Can I use any C# library in Xamarin

From what I understand Xamarin provides most (if not all) features of C# for mobile app development. Does that mean I can use any C# library (say, nAudio or something else), provided it is compatible with a target platform? And how to see if a library compatible with a mobile platform?

Upvotes: 2

Views: 703

Answers (1)

Vibeeshan Mahadeva
Vibeeshan Mahadeva

Reputation: 7238

To understand it you should learn how .net is Fragmented.

enter image description here

nAudio uses most of the .net framework APIs and Windows Native APIs, so simply u can't use this with Xamarin.

Even if you think Xamarin can targets Windows, you have no corresponding API in the version of .Net subsystem.

Only possible solutions will be moving the code to server, and let it server all the clients.

or

Rewriting the nAudio for Xamarin

Upvotes: 1

Related Questions