Xamarin.iOS Documentation | ComponentOne
Getting Started with Xamarin.iOS Controls / Adding NuGet Packages to your App
In This Topic
    Adding NuGet Packages to your App
    In This Topic

    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 iOS references have to be added to your project. Complete the following steps to add Xamarin references to your project.

    1. Open a pre-existing Mobile App or create a new Mobile App (see Creating a New Xamarin.iOS App).
    2. From the Project menu, select Manage NuGet Packages. The Manage NuGet Packages dialog box appears.
    3. Click Online and then click MESCIUS.
    4. Click Install next to C1.iOS.ControlName (for example C1.iOS.Chart). This adds the references for the Xamarin control.
    5. Click I Accept to accept the license and then click Close in the Manage NuGet Packages dialog box.
    1. Open a pre-existing Mobile App or create a new Mobile App (see Creating a New Xamarin.iOS App).
    2. In the Solution Explorer, right click the project and select Add | Add Packages. The Add Packages dialog appears.
    3. From the drop down menu in the top left corner, select MESCIUS. The available Xamarin packages are displayed.
    4. Select the package C1.iOS.ControlName and click the Add Package button. This adds the references for the Xamarin control.

    To manually create a Xamarin feed source

    Complete the following steps to manually add Xamarin NuGet feed URL to your NuGet settings in Visual Studio or Xamarin Studio and install Xamarin.

    1. From the Tools menu, select NuGet Package Manager | Package Manager Settings. The Options dialog box appears.
    2. In the left pane, select Package Sources.
    3. Click the Add button in top right corner. A new source is added 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 feed has now been added as another NuGet feed source.

    To install Xamarin using the new feed

    1. Open a pre-existing Mobile App or create a new Mobile App (see Creating a New Xamarin.iOS App).
    2. Select Project | Manage NuGet Packages. The Manage NuGet Packages dialog box appears.
    3. Click Online and then click Xamarin. The available packages are displayed in the right pane.
    4. Click Install next to C1.Xamarin.Forms.ControlName (for example C1.Xamarin.Forms.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 box.
    1. From the Projects menu, select Add Packages. The Add Packages dialog appears.
    2. From the drop down menu on the top left corner, select Configure Sources. The Preferences dialog appears.
    3. In the left pane, expand Packages and select Sources.
    4. Click the Add button. The Add Package Source dialog appears.
    5. Set the Name of the new package source. Set the URL as https://api.nuget.org/v3/index.json.
    6. Click the Add Source button. The Xamarin feed has now been added as another NuGet feed source.
    7. Click OK to close the Preferences dialog.

    To install Xamarin using the new feed

    1. Open a pre-existing Mobile App or create a new Mobile App (see Creating a New Xamarin.iOS App).
    2. In the Solution Explorer, right click the project and select Add | Add Packages. The Add Packages dialog appears.
    3. From the drop down menu on the top left corner, select Xamarin. The available Xamarin packages are displayed.
    4. Select the package C1.[Platform].[ControlName] and click the Add Package button. This adds the references for the Xamarin control.