I'm pretty new to Xamarin and the whole C#/.NET world. I'm planning to develop a cross plateform app using Xamarin, and I will need to create libraries to share with others developers. I've heard of PCL, but some of the limitations bug me a bit. For exemple, I can't use System.Net, even if I can use it directly in an iOS or an Android project.
I know that, again for exemple, System.Net is compile differently in an iOS project than in an Android project, and that's one of the reason I can't use it in a PCL. However, is it possible to write a library, and then compile it for each plateform?
Shared projects, on the other hand, let me do it. But I can't share it as a library.
So, what I'm trying to do is to have only one code to maintain. Write once, compile twice, run everywhere (on mobile, except Windows Phone).
So, the question is :
Is it possible to achieve such a thing?
What you should do is creating a Class Library for both iOS and Android. Then, you write your code in only one of them, and link the code files to the other Class Library. That way, you're writing your code once, compile each Class Library and you get 2 DLL library from the same code.