TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Rendering Blazor components to a string: Exploring the .NET 8 preview – Part 9

22 点作者 stevefan1999超过 1 年前

2 条评论

bob1029超过 1 年前
I&#x27;ve been using Blazor&#x2F;Razor for a while and I have to say that I will generally be avoiding it moving forward.<p>It is really sad to me that the VS2022 experience around hacky, PHP-style string interpolation (e.g. @$&quot;&lt;html&gt;{site goes here}&lt;&#x2F;html&gt;&quot;) is <i>far</i> superior to the experience of editing cshtml-style files exactly as prescribed by the vendor.<p>I&#x27;ve got some razor components that will simply crash VS2022 about 25% of the time. They aren&#x27;t particularly large components, but you can <i>feel</i> some monumental, visceral amount of inertia behind these file types every time you try to work with them in the official editor.<p>Maybe dev experience is better over in vscode land, but I don&#x27;t really care. There are enough other downsides to this web ecosystem to generally avoid it.<p>To be clear - I otherwise absolutely love everything .NET&#x2F;C#&#x2F;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.
评论 #37856585 未加载
评论 #37857324 未加载
评论 #37857403 未加载
CodeCompost超过 1 年前
To me this is just another iteration of WebForms: the final rendered component looks nothing like the code you put in.
评论 #37863551 未加载