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

Problem when upgrading to Blazor NetCore 7

Using vS2022, NetCore 7 and SyncFusion.Blazor 20.4.0.42 I created a brand new  BlazorServerApp, then I followed the steps in this link here but the calendar doesn't work. 
There is no _Layout.cshtml page to add the "Style Sheet" and the "Script Reference" so I placed them on _Host.cshtml.

I would appreciate very much for a link of an existing sample application in the same environment or if you can take a look at the included sample project.




Attachment: RPTest_cc0d7d27.zip

1 Reply 1 reply marked as answer

BH BharatRam Harikrishnan Syncfusion Team January 10, 2023 11:04 AM UTC

Hi Ben,

 

The issue occurred due to improper reference of scripts and styles in the application. You have installed the Single NuGet package (Syncfusion.Blazor) and referred styles and scripts related to individual NuGet packages. Refer the styles and scripts below to resolve the issue,

 

<head>

  ...

  <!--Refer theme style sheet as below if you are using Syncfusion.Blazor Single NuGet-->

  <link rel='nofollow' href="_content/Syncfusion.Blazor/styles/bootstrap5.css" rel="stylesheet" />

  <!--Use below script reference if you are using Syncfusion.Blazor Single NuGet-->

  <script  src="_content/Syncfusion.Blazor/scripts/syncfusion-blazor.min.js"  type="text/javascript"></script>

</head>

 

We have documentation for referring the styles and scripts when installing Syncfusion.Blazor NuGet package in the application.

 

image

 

image

 

Refer the below link for individual NuGet packages,

 

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

 

We have modified the shared sample which you can find from the below link,

 

Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/RPTest75092326

 

Regards,

Bharat Ram H



Marked as answer
Loader.
Up arrow icon