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

    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 Xamrin.Mac App or create a new Xamarin.Mac App (see Creating a New Xamarin.Mac App).
    2. In the Solution Explorer, right click the project and select Add | Add NuGet Packages. The Add Packages dialog appears.
    3. From the drop down menu in the top left corner, select http://www.nuget.org/api/v2. The available Xamarin packages are displayed.
    4. Search for the ComponentOne packages using Search bar. For example, search for C1.
    5. Select the package C1.Mac.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 Projects menu, select Add NuGet 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 http://nuget.grapecity.com/nuget/.
    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 Xamrin.Mac App or create a new Xamrin.Mac App (see Creating a New Xamarin.Mac App).
    2. In the Solution Explorer, right click the project and select Add | Add NuGet 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.