Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Code Sharing between platforms - Why can't I add references to the 'Master' project?

$
0
0

Hi Guys,

I'm completely new to Xamarin so I've got a problem im sure is just a simple misunderstanding on my part.

I'm beginning development of a new Mobile App that connects to a web API to retrieve Data from a database stored on a separate server. I'm using the MVVM pattern so I want the code for the models to be shared between all platforms, however I can't seem to add references to libraries such as System.Data in the 'master' project? Where as I can in the [AppName].Droid project.

Do I have to write two completely different versions of my app for each platform, each with the same "base code"?

Or am I being stupid and missing something entirely? (I'll place my bets on this one :) )

Thanks Guys


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>