We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

"The type or namespace 'Syncfusion' could not be found." error while in Android context.

Hello,

I am attempting to use Syncfusion with a .NET MAUI project that I am working on, but Visual Studio for Mac preview can not find the namespace for Syncfusion while in the Android context. The iOS and Maccatalyst contexts are able to find the namespace just fine. Similarly, adding Syncfusion to a page's XAML produces a similar error. This is using .NET 7.0.

STEPS TO REPRODUCE:
  1. Create a new .NET MAUI project in the latest Visual Studio for Mac preview.
  2. Go into the NuGet packages and add Syncfusion.Maui.Core.
  3. Attempt to add "using Syncfusion.Maui.Core.Hosting;" to the top of the MauiProgram class as well as attempt to use the builder.ConfigureSyncfusionCore(); method.
  4. Note the errors produced by Visual Studio while in the Android context, but switching to the iOS or Maccatalyst context produces no errors.
EDIT: The app seems to have no issue compiling and running on Android, could there be an issue with Visual Studio for Mac preview?


Attachment: Test_Maui_App_2_a3889286.zip


1 Reply

VV Vijayakumar Viswanathan Syncfusion Team February 14, 2023 05:52 PM UTC

Hi Conrad,

Thanks for contacting Syncfusion support.

We were unable to reproduce the reported scenario. We thoroughly tested using both the provided sample and our own, while following your replication procedure. We have attached a video for your reference, along with the details of the Visual Studio for Mac preview version. If the issue still persists, please provide any additional information that may help us to assist you better.

Visual studio Version:
Visual Studio Community 2022 for Mac Preview

Version 17.5 Preview (17.5 build 1766)

Regards,

Vijayakumar V


Attachment: VideoReference_50750b56.zip

Loader.
Up arrow icon