18.4.0.30 Update - Namespace exists

Hello,
I updated to 18.4.0.30 from a working build and all components have CS0433 errors.
Error    CS0433    The type 'ChangeEventArgs<TValue, TItem>' exists in both 'Syncfusion.Blazor.DropDowns, Version=18.4.0.30, Culture=neutral, PublicKeyToken=null' and 'Syncfusion.Blazor, Version=18.4.0.30, Culture=neutral, PublicKeyToken=null'
Error    CS0433    The type 'SfUploader' exists in both 'Syncfusion.Blazor.Inputs, Version=18.4.0.30, Culture=neutral, PublicKeyToken=null' and 'Syncfusion.Blazor, Version=18.4.0.30, Culture=neutral, PublicKeyToken=null'
Error    CS0433    The type 'SuccessEventArgs' exists in both 'Syncfusion.Blazor.Inputs, Version=18.4.0.30, Culture=neutral, PublicKeyToken=null' and 'Syncfusion.Blazor, Version=18.4.0.30, Culture=neutral, PublicKeyToken=null'
Error    CS0433    The type 'BeforeUploadEventArgs' exists in both 'Syncfusion.Blazor.Inputs, Version=18.4.0.30, Culture=neutral, PublicKeyToken=null' and 'Syncfusion.Blazor, Version=18.4.0.30, Culture=neutral, PublicKeyToken=null'
Error    CS0433    The type 'SelectedEventArgs' exists in both 'Syncfusion.Blazor.Inputs, Version=18.4.0.30, Culture=neutral, PublicKeyToken=null' and 'Syncfusion.Blazor, Version=18.4.0.30, Culture=neutral, PublicKeyToken=null'
Error    CS0433    The type 'ClearingEventArgs' exists in both 'Syncfusion.Blazor.Inputs, Version=18.4.0.30, Culture=neutral, PublicKeyToken=null' and 'Syncfusion.Blazor, Version=18.4.0.30, Culture=neutral, PublicKeyToken=null'
Error    CS0433    The type 'SfUploader' exists in both 'Syncfusion.Blazor.Inputs, Version=18.4.0.30, Culture=neutral, PublicKeyToken=null' and 'Syncfusion.Blazor, Version=18.4.0.30, Culture=neutral, PublicKeyToken=null'
Error    CS0433    The type 'SfUploader' exists in both 'Syncfusion.Blazor.Inputs, Version=18.4.0.30, Culture=neutral, PublicKeyToken=null' and 'Syncfusion.Blazor, Version=18.4.0.30, Culture=neutral, PublicKeyToken=null'
Error    CS0433    The type 'SuccessEventArgs' exists in both 'Syncfusion.Blazor.Inputs, Version=18.4.0.30, Culture=neutral, PublicKeyToken=null' and 'Syncfusion.Blazor, Version=18.4.0.30, Culture=neutral, PublicKeyToken=null'
Error    CS0433    The type 'ClearingEventArgs' exists in both 'Syncfusion.Blazor.Inputs, Version=18.4.0.30, Culture=neutral, PublicKeyToken=null' and 'Syncfusion.Blazor, Version=18.4.0.30, Culture=neutral, PublicKeyToken=null'
etc..

I've tried: deleting all bin/obj folders, cleaning, and rebuilding. Anyone else?

4 Replies 1 reply marked as answer

DI Ditchford December 19, 2020 06:01 AM UTC

Hello Azeo

Yes, I have just had this issue.  Worked around by using the new method that allows you to specify individual Nuget packages for each control (or group of)

Individual NuGet Packages in Blazor - Syncfusion

This seems to work.  Had the same error as you when I did a straight upgrade using the existing method of referencing all Syncfusion Blazor controls in the one Nuget package.

Hope this helps.




MK Mohan Kumar Ramasamy Syncfusion Team December 19, 2020 08:01 AM UTC

Hi Azeo, 
 
We have Provided individual NuGet packages for our Syncfusion Blazor components. Please refer below link. 
 
 
We have checked your reported issue. We suspect that, you have use both Syncfusion.Blazor and individual packages in your application. So, you have use anyone packages install Syncfusion.Blazor or individual package. Please refer below code snippets. 
 
.csproj 
 
Syncfusion.Blazor – All component usage and its namespace. 
 
 
  <ItemGroup> 
    <PackageReference Include="Syncfusion.Blazor" Version="18.4.0.30" /> 
  </ItemGroup> 
 
 
                                                      OR 
 
individual packages - NuGet packages are segregated based on the component usage and its namespace. 
 
  <ItemGroup> 
    <PackageReference Include="Syncfusion.Blazor.DropDowns" Version="18.4.0.30" /> 
    <PackageReference Include="Syncfusion.Blazor.SplitButtons" Version="18.4.0.30" /> 
  </ItemGroup> 
 
For your reference, we have prepared a sample based on this. Please refer below link. 
 
 
If you still facing issue, please clear the cache for NuGet package. Please refer below link. 
    
·         Outdated custom scripts referred in the application.  
     
Also, could you please ensure the problem after clearing the browser/NuGet cache or run the application using incognito window of the browser.     
 
Please let us know, if you need any further assistance. 
 
Regards, 
Mohan kumar R 


Marked as answer

AZ Azeo December 19, 2020 06:52 PM UTC

Thank you Ditchford and Mohan, using the individual packages worked.
Had issues with linking issues with bootstrap css, but this was the working solution:
Remove reference from .csproj file
Delete all nuget packages relating to syncfusion from .nuget
Deleted all bin/obj from affected referenced projects
Added individual components
Deleted using Syncfusion.Blazor references


MK Mohan Kumar Ramasamy Syncfusion Team December 21, 2020 04:53 AM UTC

Hi Azeo, 
 
Thanks for update. 
 
We are happy to hear that your issue has been resolved. If you still facing theme reference related issue , please refer below UG link. 
 
 
Please feel free to contact us if you need any further assistance on this. 
 
Regards, 
Mohan kumar R 


Loader.
Up arrow icon