.NET 8 Support #7430
Replies: 23 comments 70 replies
-
Hello
When .Net 8 will be released completely and when we test it. |
Beta Was this translation helpful? Give feedback.
-
Also waiting for the MudBlazer Template for "MudBlazor-Web-App" (Blazor United) for .Net8. RC-1 of .Net8 comming in 2 weeks. |
Beta Was this translation helpful? Give feedback.
-
Currently, MudBlazor shows promising compatibility with .NET 8, particularly when integrated with the new Blazor-Web-App template. It's worth noting that for optimal functionality, one needs to specify the render mode as either InteractiveWebAssembly or InteractiveServer on a per-page/component basis. A notable limitation, however, is that the mainLayout doesn't support SSR (Server-Side Rendering). For my project, I intend to have the main menu SSR enabled and then, based on individual pages or components, decide whether to opt for Blazor-Server, SSR, or WebAssembly (WASM). As a workaround, I'm employing the main menu from the ASP.NET template tailored for the Blazor-Web-App. IT's requires to integrate MudThemeProvider, MudDialogProvider, and MudSnackbarProvider into each page (and NOT the MainLayout). This approach seems to be effective, based on my observations so far. What would be immensely beneficial is an SSR-compatible MainLayout and Nav, which operates using just HTML, JavaScript, or CSS for the core layout and navigation. A current hiccup is that the Drawer toggle isn't functioning because it relies on C# code. I'm dedicated to further testing and plan to use it extensively with .NET 8. |
Beta Was this translation helpful? Give feedback.
-
Added Pull Request MudBlazor/Templates#410 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
just use the template: git clone https://github.com/mahald/Templates.git works there with any mode see description here: MudBlazor/Templates#410 PS: you can also see the Template after install in the latest Visual Studio preview with the same options as the Blazor Web App Template |
Beta Was this translation helpful? Give feedback.
-
:) I'm sorry for that. But I found templates mentioned in your pr cannot work under your instructions. The dotnet cli gives me a error code 103 which means The template or the template package was not found and a warn ./Templates/src/MudBlazor is unsupported . I misunderstood you, and thought that the repo mentioned today had solved this possible problem. |
Beta Was this translation helpful? Give feedback.
-
I am running on .Net 8 rc2 and it seems that MudSelect is not working. It appears to be something to do with the integrated Popover not showing the items list, and as such, non of the list shows when selected for drop-down but no errors. |
Beta Was this translation helpful? Give feedback.
-
I was able to get the MudLayout, MudDrawer and MudThemeProvider to work without setting a global render mode. I added the details in this issue: #7511 (comment) I hope it helps someone. Of course the MudLayout has a limitation with the approach above, is that the class cannot change dynamically when the drawer is open, so I can only use a fixed drawer as far as I know. More details in the issue comment. |
Beta Was this translation helpful? Give feedback.
-
The more you get into this the more you're going to run into problems with MudBlazor if you choose to utilize per page interactivity. We've managed to get everything to work consistently but with some hacks and a fair amount of custom code including moving inter component event lifecycles (meaning communications between components with different interactivities) into a lightweight custom JS message bus. |
Beta Was this translation helpful? Give feedback.
-
I agree, I just wanted to share in case someone wanted to take a closer look at it. I will stick to server interactivity for my app for now. The bugs are not worth it. For example, I realized the Match of NavLinks were not working properly with the per page approach. And I got fed up of investigating it. Even though I am curious as to why that wouldn't work. |
Beta Was this translation helpful? Give feedback.
-
Looking forward to MudBlazor support for .Net 8 and SSR. Perhaps a good time for the breaking changes required for MudBlazor 7? As any early adopter, Blazor 8 defaulting to SSR is a fairly huge change and pretty much breaks most Blazor Server apps (can't speak for WASM) when using the "Blazor Web" template. Here is what I've found if it helps anyone reading the thread...
To get the "Blazor Web" model working in an "InteractiveServer" mode with MudBlazor, you have to do a couple of things...
With the above steps, I have no issue running my MudBlazor app on this new template. The key is the InteractiveServer must be the global default mode and set early on the Routes component. Any Scoped services need to be inside/below that component in order for them to be included in the circuit. If you want to experiment with SSR, there is currently no way to set a Page/Component to SSR using the RenderMode attribute. This is being considered for .Net 9... *However, there is a work around... Add a field that creates an IComponentRenderMode instance based on the path... Now update the Routes tag to utilize this field as the RenderMode instead of InteractiveServer... Now you have an app that is, by default globally InteractiveServer, but which you can selectively (by path), play with SSR components. Just keep in mind SSR components don't have access to your Scoped services or the same browser state as the InteractiveServer components do. SSR is stateless and there is no SignalR circuit. *Big thanks to Daniel Roth for helping me understand and suggesting this workaround. |
Beta Was this translation helpful? Give feedback.
-
Using it with .net 8. ported a Blazor WASM .net 7 by upgrading all NuGet packages to 8.x as applicable - no issues so far. Haven't tried the new hosting models yet. |
Beta Was this translation helpful? Give feedback.
-
I tried to use Fluent Blazor, but its look and feel just doesn't appeal to me. MudBlazor is still the best as far as I can tell. I would love to see a .NET 8 supported version. Has anyone found any mention of this in a Roadmap anywhere? |
Beta Was this translation helpful? Give feedback.
-
I have ported my blazor wasm hosted pwa from .net 7 to .net 8 blazor web app. When publishing app with trimming enabled the Routes.razor gets trimmed away and app wont start. Anyone have a solution for this issue? |
Beta Was this translation helpful? Give feedback.
-
Pretty much where I am at, I fix one thing and another breaks, I have read every post on here, followed every example, same thing fix one thing break another. I am only trying to get interactive server working with authentication (I know those pages have to be static), I am not even trying to get mudblazor onto the accounts pages yet, I am using normal razor pages and controls, I get a range of errors from circuit disconnects to looping on the Http Context. I have created a number of projects from scratch using the Visual Studio templates, then adding MudBlazor in. I do accept this is not a MudBlazor issue but it's likely that someone in this repo will get it working properly. |
Beta Was this translation helpful? Give feedback.
-
Steps to create from scratch a fully functional Blazor 8 web App using MudBlazor with interactivity Auto mode.
this is by default by microsoft template which include example codes so it placed counter in addadditionalassemblies. change it to like this. app.MapRazorComponents() Note the change of "MyBlazorApp.Client._Imports" on place of "Counter". Now overall setup is complete , lets test if the mudblazor is working.
now you can experiment with auto conversion of blazor server mode initially and webassembly on second application load by deleting browser history etc.etc. good luck :) |
Beta Was this translation helpful? Give feedback.
-
Has anyone had success with MudDialog in a .NET 8 Blazor Web App? I've been careful to set one of the interactive render modes, rather than testing on a static SSR page. But no luck. |
Beta Was this translation helpful? Give feedback.
-
I have been trying to get a Balzor Web App .Net 8 working. In my development environment, all is working fine (including all the MudBlazor Components), but when I publish the app to IIS, I get a After this error has occured, I get the same issue in my Dev environment. Deleteting the project folder and re-creating it via GitHub makes it work again in my Dev Environment. |
Beta Was this translation helpful? Give feedback.
-
In my case .Net8 with "MudBlazor Version 6.15.0" the 2 out of 3 components and are causing errors regardless where they are i.e. App.razor or individual page component. The only is fine. The additional suggested above <MudThemeProvider @rendermode="InteractiveServer" /> and <MudSnackbarProvider @rendermode="InteractiveServer" /> aren't improving. I'm wondering if you're are able to support and advice? Error1: Error2: |
Beta Was this translation helpful? Give feedback.
-
Hi. it looks like you're well on your way with net8/mudblazor... i am just getting started. |
Beta Was this translation helpful? Give feedback.
-
I would like to know if there are any news on that? I want to try MudBlazor in .NET8 and it looked promising, but too much important stuff doesn't work (JavaScript interop exceptions). So do you guys plan to release version for .NET8? I mean, is it on your roadmap? |
Beta Was this translation helpful? Give feedback.
-
Hello,
did anyone play with Mud and .Net8 Preview?
When can we expect official support?
I am building a new project and its MVP should be released between the next 4 to 8 month.
We are using MudBlazor and Net7 but want to utilize some Net8 features.
I am now primarly interested in any issues someone might have experienced.
Beta Was this translation helpful? Give feedback.
All reactions