Forum Xamarin.Forms

Xamarin Forms NuGet

Hi All,

We are creating .NET Standard project in Xamarin Forms , and we uninstall the Xamarin Forms NuGet in ios,uwp and android project (only installed in pcl alone). Even then we are able access the xamarin forms inside corresponding platform project(ios,uwp,android) and also the application is working fine. Can you please provide us a reason why Xamarin forms NuGet has to be installed in the platform project?


  • Amar_BaitAmar_Bait DZMember ✭✭✭✭✭
    edited July 2019

    Well probably you should clean/rebuild the projects (or uninstall them from devices) to see that they won't work (maybe even not compile at all)

    Xamarin.Forms nuget is need to be installed in each platform, because it contains the code for each platform (multi-targeting)

    So Xamarin.Forms installed in an Android project, contains Xamarin.Forms shared code (same you have access to in the .NET Standard) + platform specific code for Android (renderers and other things that use Android API) with the namespace Xamarin.Forms.Platform.Android.

    Same for iOS and UWP.

    You can check the source code and see how the nuget packages are built for each target.

  • ColeXColeX Member, Xamarin Team Xamurai

    Like Amar said , some specific code is written in platform project ,we have to install the plugin in corresponding platform to access them.

    Like these renderers :

Sign In or Register to comment.