Search code examples
mobilexamarinsharedxamarin.formsportable-applications

Portable and Shared projects of Xamarin


I'm new on creating Xamarin projects.
What is the difference between portable and shared projects ?
I guess one is portable and the other is shared but what is the aim of these
and which one I should use for my cross-platform forms mobile applicaton?

Portable and Shared projects on Xamarin

Thanks in advance


Solution

  • Taken directly from Xamarin website:

    Shared Projects – Use the Shared Asset Project type to organize your source code, and use #if compiler directives as required to manage platform-specific requirements.

    Portable Class Libraries – Create a Portable Class Library (PCL) targeting the platforms you wish to support, and use Interfaces to provide platform-specific functionality.