What is the difference between a Xamarin.Forms Portable project or Xamarin.Forms Shared?
What is the difference between a Xamarin.Forms Portable project or Xamarin.Forms Shared?
Portable is applied in a limited subset version of the framework that can run on all platforms. Any code has to be written considering these limitations and if you need to do some specialization, this must occur with dependency injection or some technique that gives the same result (even simple decisions with if
). It's something more dynamic.
Sharedusescodedevelopedforallplatformsandspecializationsaredecidedthrough#ifdef
conditionalcompilation.Thatis,thesourcecodemaybeunique,butadifferentversionwillbegeneratedforeachplatform.It'ssomethingmorestatic.