Compile error

Goodmorning,

In my project i am using ISyncfusionStringLocalizer.

Everything worked fine.

But when i installed the Sycfusion.Blazor.PfdViewerServer.Windows with NuGet i am getting tons of errors.

Severity Code Description Project File Line Suppression State

Error CS0433 The type 'ISyncfusionStringLocalizer' exists in both 'Syncfusion.Blazor.Core, Version=19.4.0.56, Culture=neutral, PublicKeyToken=null' and 'Syncfusion.Blazor, Version=19.4.0.56, Culture=neutral, PublicKeyToken=null' 


Best regards,

Thijs van Rijswijk


3 Replies

SK Shamini Kiruba Sobers Syncfusion Team April 4, 2022 09:54 AM UTC

Hi Thijs,


From the release (v18.4.0.30), the Syncfusion Blazor UI components are separately available in individual NuGet packages. The NuGet packages are segregated based on the component usage and its namespace. Please find the documentation from the below link.


Documentation Link: https://blazor.syncfusion.com/documentation/nuget-packages


Themes Link: https://blazor.syncfusion.com/documentation/appearance/themes   


Simple Blazor Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/BlazorServer118359613


Note: Do not use both Syncfusion.Blazor and individual NuGet packages in the same application. It will throw ambiguous errors while compiling the project.


If you are still facing any issues even after removing the Syncfusion.Blazor package, kindly let us know the list of Syncfusion packages that you have used on your end. And kindly let us know whether you are facing any issues with the Syncfusion PDF Viewer? If yes, kindly share the sample or steps to replicate the issue on our end. So, it will be helpful for us to investigate further and assist you better.


Regards,

Shamini



TV Thijs van Rijswijk replied to Shamini Kiruba Sobers April 5, 2022 12:02 AM UTC

Hi Shamine,


Thanks for your solution and the great support/

Everyting works fine now.


Regards,

Thijs



SK Shamini Kiruba Sobers Syncfusion Team April 5, 2022 05:04 AM UTC

Hi Thijs,


Thanks for the update. We are proceeding to mark this forum as solved.


Regards,

Shamini


Loader.
Up arrow icon