Getting Started with Xamarin.Android Controls / Adding NuGet Packages to your App
Adding NuGet Packages to your App

To install NuGet

  1. Go to https://www.nuget.org/ and click Install NuGet.
  2. Run the NuGet.vsix installer.
  3. In the Visual Studio Extension Installer window, click Install.
  4. Once the installation is complete, click Close.

To add Xamarin References to your App

In order to use Xamarin controls on Android platform, related references need to be added to your project. Complete the following steps to add Xamarin references to your project.

  1. Open an existing or a new Xamarin.Android App.
  2. In the Project menu, select Manage NuGet Packages.
  3. In the Manage NuGet Packages dialog, click Online and then click MESCIUS.
  4.  Click Install next to C1.Android.ControlName (eg. C1.Android.Chart). This adds the references for Xamarin control.
  5. Click I Accept to accept the license and then click Close in the Manage NuGet Packages dialog.

To manually create a Xamarin feed source

  1. In the Tools menu, select NuGet Package Manager | Package Manager Settings. The Options dialog appears.
  2. In the left pane, select Package Sources.
  3. Click the Add (+) button in top right corner to add a new source under Available package sources.
  4. Set the Name of the new package source. Set the source as https://api.nuget.org/v3/index.json.   
  5. Click OK. The Xamarin feed has now been added as another NuGet feed sources.                     

To install Xamarin using the new feed:

  1. Open an existing or a new Android app.
  2. Select Project | Manage NuGet Packages.
  3. In the Manage NuGet Packages dialog, go to the Online drop down and select Xamarin. The available Xamarin packages get displayed in the right pane.
  4. Click Install next to the NuGet package (for example, C1.Android.Chart). This updates the references for the Xamarin control.
  5. Click I Accept to accept the ComponentOne license for Xamarin and then click Close in the Manage NuGet Packages dialog.