简体   繁体   English

Visual Studio 2019 Blazor 服务器端项目太慢了

[英]Visual Studio 2019 Blazor serverside project is soooooo slow

I am working on a Blazor project and the texteditor is very very slow when working in the.Razor files.我正在处理 Blazor 项目,并且在处理 .Razor 文件时,文本编辑器非常慢。 In the.CS, .xml and so on, everything is fine, but in the mixed.Razor it ie.在.CS,.xml等等,一切都很好,但在混合的.Razor中它即。 takes up to 3-5 sec.最多需要 3-5 秒。 to do a if() {} and I get this:做一个 if() {} 我明白了:

Screendump link屏幕转储链接

Does anyone know a trick or a tweek to get the VS 2019 texteditor useful again?有谁知道让 VS 2019 文本编辑器再次有用的技巧或技巧?

I only use Razor files for rendering the markup.我只使用 Razor 文件来渲染标记。 For any logic I create a code behind file by creating a file named MyComponent.Razor.cs对于任何逻辑,我通过创建一个名为 MyComponent.Razor.cs 的文件来创建一个代码隐藏文件

public partial class MyComponent
{
  // Supporting methods etc go here
} 

It's a better experience!这是更好的体验!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM