Rendering Blazor components to a string: Exploring the .NET 8 preview – Part 9
andrewlock.net
andrewlock.net
It is really sad to me that the VS2022 experience around hacky, PHP-style string interpolation (e.g. @$"<html>{site goes here}</html>") is far superior to the experience of editing cshtml-style files exactly as prescribed by the vendor.
I've got some razor components that will simply crash VS2022 about 25% of the time. They aren't particularly large components, but you can feel some monumental, visceral amount of inertia behind these file types every time you try to work with them in the official editor.
Maybe dev experience is better over in vscode land, but I don't really care. There are enough other downsides to this web ecosystem to generally avoid it.
To be clear - I otherwise absolutely love everything .NET/C#/AspNetCore. Blazor and UI (MAUI) are their only real weak points, IMO. If you are willing to get your hands a little dirty as described above, you can sidestep entire mountains of depreciable chaos.
I have experienced _some_ performance problems, but only when I don't have enough resources for VS to gobble up. Should it be lighter? Absolutely. It's not like I can't get work done though.