VS 2022: High RAM and CPU issue with Roslyn Code Analysis - visual-studio

We have a huge solution (ASP.NET MVC, C#) in Visual Studio 2022 (v.17.2.2 64bit).
Roslyn Code Analysis is always using high CPU and RAM.
Is there a way to prevent this issue? A configuration or something else?

In Visual Studio 2022, I've resolved it by disabling these two checks:
after that, Visual Studio works well.

This has apparently been fixed in VS2022 v17.3
https://developercommunity.visualstudio.com/t/vs-2022-high-cpu-use-by-servicehubroslyncodeanalys/1610702

Related

Visual studio crash on startup

I have a problem with running Visual Studio 2013 Ultimate. I start visual studio and wait to load Start page. It is ok. But when I move with mouse, visual studio crash without any error message. I tried run visual studio in /safemode, no change, the same problem. Then i try run it with /log parameter to look for errors in %appdata%/....., but the file doesn't constaints any error item. Reinstall didn't work. Anyone can help me? Thanks. (Sorry for my EN)
It is an normal problem i have seen in 2013 version, i would recommend you to use Visual studio 2015 professional instead, it's much more useful with some extra features and more user friendly.Try downloading it.
Solved. Finally!!! Visual Studio have turned on HW acceleration on graphics card. Turn off the HW acceleration in visual studio solve the problem

What can I do with code analysis upgrading from Visual Studio 2010 to Visual Studio 2012?

I am upgrading a big solution from Visual Studio 2010 to Visual Studio 2012. All is done, but the code analysis module was changed in Visual Studio 2012 so I got thousands of CODE analysis errors (many CA1703, CA1709, etc.) What can I do?
It is very hard to manage every manually.
These are not errors. They are just warnings.
You can just turn off code analysis
How to: Enable and Disable Automatic Code Analysis for Managed Code at MSDN
or reconfigure Code Analysis
How to: Configure Code Analysis for a Managed Code Project at MSDN
VS2012 is not so diffrent that you may think. It's just diffrently configured by default.
I am not sure there is a perfect answer for that but the code analysis in VS2012 is much better than in VS2010. There are many improvements in VS2012 and I believe there isn't any one shot solution to this problem. You may have to look into every error case by case.

Is Visual Studio express less resource intensive than Visual Studio Pro?

I have VS 2010 at work, but at home I was thinking of just installing the express version since it might be less resource intensive?
Yes, it is much less resource intensive.
It also has many less features.
I suggest reading What is “missing” in the Visual Studio 2008 Express Editions? before making a decision.

Visual Studio Add-On and extensions performance monitoring?

I'm using / testing a lot of extensions or add-on to Visual Studio.
As my Visual Studio is quite low, I'm wondering if some extensions are causing high CPU load.
Is there any way to monitor memory, disk and CPU usage per extension ?
Google Chrome Task manager provides such functionality... Is there the same for Visual Studio ?
DotTrack addon - visual studio
or
http://en.wikipedia.org/wiki/List_of_performance_analysis_tools#.NET
.net performance analysis
Try this link : http://www.jetbrains.com/profiler/ ^^
This one is currently available for 2012, 2013, 2015
Extensions Monitor
https://www.visualstudiogallery.msdn.microsoft.com/8dc77c87-a36b-4b79-809c-0102911786db

Will Visual Studio 2010 still be able to use all the plugins for Visual Studio 2008?

I use Visual Studio 2k8 Pro Edition at home and I have loaded it with a lot of important addins customised for my development.
If I get VS2010 Pro Edition, would all of these plugins fail to work? Is this a plugin-related matter or down to Visual Studio itself? E.g. Visual Studio 2010 may just be based on the 2008 version but with enhancements (is it?).
Thanks
You can always download the beta and try them out.
Impossible to say without seeing it in practice. Seriously. We don't know which plug-ins you're using so we've no idea how they're going to react to a new VS version...
But even you had told us, you'd save yourself a lot of time just installing VS 2010 in a VM and trying your plug-ins out.
Nope at least Resharper 4.5 is not working in VS2010
No. Unmanaged addins are COM objects that are tied to the version of the IDE environment. For the most part, the addins just need to be rebuilt with only minor changes though.
EDIT: Addins that go beyond using the standard addin interfaces though will probably require retooling for the VS2010 environment.
EDIT 2: Managed addins are typically deployed using .addin files which are sometimes located in "%APPDATA%\Microsoft\MSEnvShared\Addins". The .addin file is an xml file that can be edited by hand. You can try adding a new HostApplication element to the file for a particular managed addin - and specify version 10.0.
Here is the info on the resharper compatibility:
http://blogs.jetbrains.com/dotnet/2009/05/preview-of-resharper-for-visual-studio-2010-coming-soon/
(Basically they will have a preview release in June)

Resources