Visual Studio 2022 hangs when open Razor file - razor

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.

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)

Related

Visual Studio Community 2019 Debugger Not Preempting Chrome Debugger with Blazor Wasm App

I am playing with a Blazor Wasm app on VS Community 2019 v16.6.2 using AspNetCore v3.2.0 and Chrome v83.0.4103. When I set a break point in some native javascript in VS, Chrome breaks on that statement instead of VS as shown in the screenshot below (look for the small light yellow "Paused in debugger" popup). This has happened before, but then I discovered I had '"nativeDebugging": true,' in the IIS Express profile in launchSettings.json. I got rid of it, and the problem went away. Now it is back, without nativeDebugging set. This is a giant pain. Any idea what I am missing this time?
Thanks. Steve
I'm not sure this is a real answer. As I said above, the problem went away when I merely opened the .map file for the TypeScript file. I assume that triggered some rebuild-like process, but that's purely conjecture.

Changes not visible when running debugger, web development VS 2013

I'm having periodic issues with changes I make to a website I'm building with VS not showing up when I run the VS debugger. For example, sometimes if I delete a section of code it still appears when I run the code using the VS debugger. This issue doesn't happen that often, and seems to appear and disappear randomly. If I go into the project's folder and manually open (double-click) the .html page I'm working on I can see my changes, so I know it's an issue with VS.
Is there something obvious I'm missing? I've just started using VS for web development, and as far as I know I'm using all the default settings.
Thanks!
Clean and built your project and try again dude.

Resharper 8 slows down the vs 2013 razor editor

I having problems with resharper in visual studio 2013 razor editor. Trying to move to another line of code with mouse gets about 1 sec to complete. Moving with arrows is a bit faster. Intelisense and code completion is very slow also.
I'm using an Core i7, 12GB DDR3, RAID0 SSDs PC.
Any help would be appreciated.
Thank you.
I had the same problem. I manage to solve this by following the steps in this blog.
I didn't have to do all of the steps. The step that "saved" me was
Disable "Rich client visual experience" in the "Options -
Environment". Here's how that settings page should look:screenshot
I hope this will solve your problem.
The solution (Disable "Rich client visual experience" ) does not work for me.
I noticed that the problem only occurs when a document is reopened. If the document is already open when you open the Solution not the problem occurs.
Devexpress published an update to their vs menu integration (i think) which solves the problem.
https://www.devexpress.com/Support/Center/Question/Details/Q561434
Thank you all.

no new window for HTML pages in Visual Studio 2010?

I've tried this on two different machines now on Windows 7 and it appears that the Window > New Window menu command is not available in Visual Studio 2010. It doesn't work for HTML, .aspx, and .js files, but does work for .css, .cs, and .xaml files. Has anyone else noticed this or knows why this is?
(I have the productivity power tools extension installed)
I found a registry entry at
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\10.0\Languages\Language Services\HTML]
or
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\Languages\Language Services\HTML]
for 64 bit machines
called "Single Code Window Only"
I deleted it and the menu command showed up!
Then I made a new window, and it was completely blank.
I checked with Visual Studio 8 and found the same thing. Apparently they have not implemented "new window" for some file types.
Apparently they had started to implement it for Visual Basic Files, but had it disabled because it hadn't been thoroughly tested yet ( http://msmvps.com/blogs/deborahk/archive/2010/05/17/visual-studio-window-new-window.aspx ).

How to run .aspx file for a beginner

All,
I have very limited knowledge of .aspx and ultimately what I want to do is exactly this:
http://www.webonweboff.com/widgets/ajax/ajax_linked_selection.aspx
I appreciate the code is given in the link above, but I am only familiar with HTML and Javascript so when it starts to tell me .aspx and .cs code I get a little lost. Have done my homework and I guess i need to install something to run these programs. Naively, I only have notepad++ at the moment.
Any help would be greatly appreciated
Joe
Your best bet is to go to http://www.asp.net/downloads and click the big green Install Now button. This will use the Microsoft Web Installer to download everything you need to get started with ASP.NET development (including Visual Studio Express which will take the place of notepad++!).
Try installing visual web developer and create ASP.NET wesite in C#. You should be able to run these files.
http://www.microsoft.com/express/Web/
Also try going through these tutorials
http://www.asp.net/web-forms
ASPX is like CGI programming. Yes you need to install the ASP.NET developer studio in order to deploy your web application. It will then configure a default webserver on your local host where you can start playing with the code samples.