Question

I'm just starting out using Xamarin so apologies if this is a very very basic question. I searched around but I couldn't find the information I need.

I've created a blank solution and I've added an Android and an iPhone project to this solution. Both apps/projects build and run okay. Now I want to add a third project which will hold the common code for the two apps.

When I right-click my solution and open up the 'Add new project' window, what project type should I choose for this shared/core code project?

Was it helpful?

Solution

The best practice is to use a Portable Class Library.

OTHER TIPS

You should have a look at the MVVMCross framework,

I've started using it recently and its fantastic.

https://github.com/MvvmCross/MvvmCross

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top