missing assembly reference in generated code

Hi,

I created a Xamarin Forms project in Visual Studio Enterprise on my macbook pro.

After following along to the getting started article here: https://help.syncfusion.com/xamarin/sfpicker/gettingstarted#adding-sfpicker-reference
I am encountering compile errors in a generated file: ConfRoomScheduling.iOS.Views.FindRoomsPage.xaml.g.cs

The error is ocurring on this line in the generated file:
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Forms.Build.Tasks.XamlG""0.0.0.0")]
        private global::Xamarin.Forms.syncfusion.SfPicker countryPicker;
The error is:
.../ConfRoomScheduling/iOS/obj/iPhoneSimulator/Debug/ConfRoomScheduling.iOS.Views.FindRoomsPage.xaml.g.cs(39,39): Error CS0234: The type or namespace name 'syncfusion' does not exist in the namespace 'Xamarin.Forms' (are you missing an assembly reference?) (CS0234) (ConfRoomScheduling.iOS)


Here is my XAML:
<?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:syncfusion="clr-namespace:Syncfusion.SfPicker.XForms;assembly=Syncfusion.SfPicker.XForms" x:Class="ConfRoomScheduling.Views.FindRoomsPage">
    <ContentPage.Content>
        <syncfusion.SfPicker x:Name="countryPicker" HeaderText="Select a Country">
        </syncfusion.SfPicker>
        <syncfusion.SfPicker x:Name="CityPicker" HeaderText="Select a City">
        </syncfusion.SfPicker>
        <syncfusion.SfPicker x:Name="FacilityPOicker" HeaderText="Select a Facility">
        </syncfusion.SfPicker>
    </ContentPage.Content>
</ContentPage>


and code behind:
using System;
using System.Collections.Generic;

using Xamarin.Forms;
//using Syncfusion.SfPicker.XForms;
//using Syncfusion.SfPicker.iOS;


namespace ConfRoomScheduling
{
    public partial class FindRoomsPage : ContentPage
    {
        public FindRoomsPage()
        {
            InitializeComponent();
        }
    }
}

I also tried with commented lines activated - but they were recognized.

Any help appreciated.

2 Replies

RB Rabhia Beham Kathar Mideenar Syncfusion Team January 15, 2018 07:01 AM UTC

Hi Allen,
 
Thanks for Contacting Syncfusion Support.
 
We can have the custom assemblies in any of the folder in MAC and can refer in your project. We have recorded a video on "How to add the Syncfusion Package to your Project". Please find the Video from the below link.
 
 
Please let us know if you have any query.
 
Regards,
Rabhia Beham.



RB Rabhia Beham Kathar Mideenar Syncfusion Team January 15, 2018 07:20 AM UTC

Hi Allen,
 
Please ignore previous update.
 
Please follow the below link to add the Syncfusion packages to the project and let us know if you face any issues.
 
 
You can find the required assemblies in the below link for SfPicker control.
 
 
Please let us know if you have any concern.
 
Regards,
Rabhia Beham K.


Loader.
Up arrow icon