ProblemWhen using Blazor WebAssembly application with Syncfusion Blazor components, the applications are not rendered in the web page. CauseThe Blazor uses the System.Text.Json library for the serialization process to transfer data, whereas Syncfusion Blazor components use the Newtonsoft.json library for serializing data. SolutionWe need to add the Linker.xml file with the Newtonsoft.json library references in the application solution (.csproj) file to resolve this component rendering issue in Blazor WebAssembly application. Linker.xml configuration removes the unwanted dependent libraries in the final build and renders the Syncfusion components in Blazor WebAssembly application properly. Find the Linker.xml file from the following link: Linker.xml: https://www.syncfusion.com/downloads/support/directtrac/general/ze/Linker1638770663.zip
WarningDisabling BlazorLinkOnBuild in the project file does not affect the rendering of components, but most of the unwanted dependent libraries will be included by the linker. In order to avoid this, the above approach is suggested. NoteWe have planned to migrate the Newtonsoft.json functionalities to System.Text.Json. After migrating the process, the above configuration will no longer be needed to configure in the application end. Refer to the following feedback link for more details. https://www.syncfusion.com/feedback/6577/using-system-text-json-instead-newtonsoft-json |
This page will automatically be redirected to the sign-in page in 10 seconds.