Skip to content

Document guidance for upgrading Blazor Server apps to .NET 8 #29505

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
danroth27 opened this issue Jun 14, 2023 · 2 comments · Fixed by #30671
Closed

Document guidance for upgrading Blazor Server apps to .NET 8 #29505

danroth27 opened this issue Jun 14, 2023 · 2 comments · Fixed by #30671

Comments

@danroth27
Copy link
Member

danroth27 commented Jun 14, 2023

Blazor Server apps will still be supported in .NET 8, but we should provide guidance for upgrading to use the latest Blazor full stack web UI features.

Sample and guidance: https://github.com/danroth27/Net8BlazorServer

@garrettlondon1
Copy link

In .NET 8, it looks like pre-rendering is enabled by default with RenderMode.Server. This may cause some confusion considering the Server vs ServerPrerendered rendering modes that Blazor Server folks are used to.

It may be worth showing an example of how to also change InteractiveServer mode to not pre-render, as now there are only three render modes.

@danroth27
Copy link
Member Author

The Blazor Server template already enabled prerendering by default. This made sense because the components always run from the server.

I think where users are more likely to get surprised is when migrating Blazor WebAssembly apps. We didn't enable prerendering by default for Blazor WebAssembly in previous releases because there is added complexity in designing component to run from both the client and the server.

Regardless, we should certainly document how to disable prerendering if it is causing issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants