Hi @NISSOU09,
i tried to replace it with @rendermode InteractiveServer it worked in one file but in the new file it did not and i need to use the first one to continue with the toturial
By default in .NET 8, you need use @rendermode
attribute instead of @attribute [RenderModeInteractiveServer]
. Did your project migrate to .NET 8 and what is the targetframework?
Check the _Imports.razor
:
@using static Microsoft.AspNetCore.Components.Web.RenderMode
Besides, if you want the whole application apply to one rendermode, you can use the following code in App.razor
:
<Routes @rendermode="new InteractiveServerRenderMode()" />
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best regards,
Rena