Xamarin.Forms Portable or Xamarin.Forms Shared

5

What is the difference between a Xamarin.Forms Portable project or Xamarin.Forms Shared?

    
asked by anonymous 09.05.2016 / 18:49

1 answer

5

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#ifdefconditionalcompilation.Thatis,thesourcecodemaybeunique,butadifferentversionwillbegeneratedforeachplatform.It'ssomethingmorestatic.

    
09.05.2016 / 19:04