Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2022 hangs when open Razor file

Created a stock Blazor project (Client or Server side, both do it).

When I open the _Imports.razor, not a problem. Open NavMenu.razor, a problem.

The IDE opens the file, displays formatted Razor and after a couple of seconds just hangs, CPU usage for devenv.exe goes 50% and stays there until End Task.

Any idea how to fix this? The IDE should not hang when I try and work with a Razor file.

like image 805
nop Avatar asked Jul 19 '26 20:07

nop


1 Answers

Thanks to the effort by these guys, changing the IDE font from 'Cascadia Mono' to Consolas sorted the problem:

https://youtrack.jetbrains.com/issue/RSRP-487353/Visual-Studio-2022-stops-responding-when-used-with-Resharper

(Note: Not using Resharper, stock VS2022 install)

like image 101
nop Avatar answered Jul 22 '26 14:07

nop



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!