Diagnostic Tools on Visual Studio 2022 - asp.net-mvc

I have installed Visual Studio 2022 and ran an existing ASPNETMVC 4.8 application with IISExpress on the Visual Studio 2022. When the application came to the start page, the process memory shows about 400MB on the Diagnostic Tools, it used be around 200MB on Visual Studio 2019. Both shown below are running the same application.
Anybody know the reason? and does the high memory usage make the application slow?
Visual Studio 2022
Visual Studio 2019

I believe this is because Visual Studio 2022 is a 64-bit application now. It will use double the memory as before. Make sure you have at least 4 gigs or RAM memory, though 8+ is better.
Note: Many people are also reporting freezes of the IDE because of the memory use but in combination with Windows Security exploit prevention systems and the new VS 2022 debugger "VsDebugConsole.exe". When blocked it has some weird memory leak. I will be posting a security fix for this in stackoverlow soon.

Related

How to fix F1.Help Visual studio 2019 Pro

When working in visual studio I have discovered that the F1.F1Help shortcut now redirects me to a google search instead of the MSDN page. This is for all that I have tested (including pages I know exists like https://learn.microsoft.com/en-us/dotnet/api/system.collections.objectmodel.observablecollection-1?view=net-5.0).
I am running Visual Studio 2019 and have resharper installed. I am using the resharper key bindings but when I change back to C# 2005 I have the same issue. I also have tried reinstalling visual studio and repairing but I am in the same situation.
How can I debug or fix this issue?

Visual Studio 2019 and ReSharper: deactivate Studio code analysis

I had Studio 2019 Community Edition installed, as well ReSharper. Since we use ReSharper for code analysis, we deactivated Studio code analysis by .editorconfig with only 2 lines:
root = true
dotnet_analyzer_diagnostic.severity = none
Everything worked fine (and still does on another PC).
Now I got a new PC, installed Win 10 from scratch, as well Studio and ReSharper. Now Visual Studio always does code analysis and comments/suggests several issues. Even if I reconfigure issues severity to None, I do not get any changes to my .editorconfig, but still analysing the code.
How can I get rid of Studio code analysis?
This is not a direct answer to your question, but take a look at this article. It describes a way to disable Roslyn-based Visual Studio features through the project properties used by Visual Studio design-time builds. This approach significantly improves memory usage on large solutions.

Net Standard 2.1 Targeting is missing from Visual Studio 2019

I just installed the .Net Core 3.0 SDK (both 64 and 32 bit version) and yet, the .Net Standard 2.1 Targeting Pack is not shown in Visual Studio's list. It is going up until 2.0 only. What am I doing wrong?
Apologizing. The problem is that I had to update visual studio.
Interestingly enough, I had Visual Studio open for several hours, and even though an update existed, it didn't prompt me to update, leaving me with the impression that it was already in the most recent version.
I had to run Visual Studio Installer manually to request for an update

Windows 8 & ASP.NET MVC & IISExpress low performance on start

We have a pretty big ASP.NET MVC project with a lot of Areas, controllers etc. Everything was fine until I installed the project on my laptop - Windows 8.1, Intel Core i5, 12 GB RAM, 7200 HDD. The project starting time (F5) become extremely slow. I'm waiting for 3-5 minutes until the home page appears in the browser. First I thought that the problem is in my laptop, and I rent a VPS - Windows Server 2012, Intel Xeon 4 core, 14GB Ram, SSD. But the situation is the same - I'm waiting for a while before the first page appears.
What I've tryed:
batch="false" in Web.config (compile optimization was also disabled/enabled)
Disabled Resharper
Disabled IntelliTrace
Disabled MiniProfiler for EF
Disabled Firewall
No anti-virus software
Enabled the concurrent build in the Resharper's God Mode
The RAM disk was also used
dotTrace profiler shows that over 70% of execution time takes the unmanaged code
Debugging symbols caching
The problem has already appeared on PCs of a couple of my collegues. Situation is the same - Windows 8.1, pretty powerful hardware - impossible to work with Visual Studio. Please, if anybody knows where the problem is let us know.
P.S. We use Visual Studio 2013 Update 4, ASP.NET MVC 5, EntityFramework 6.
This works fine for me: Start a 2nd instance of VisualStudio with a minimal Webapp in IIS Express in debug mode and let it still run while working with your 1st Instance VS and do your work!

Visual Studio 2010 or MonoDevelop

I'm very new to Mono for Android and am having issues getting started - specifically as a new user I tend to have to step through code to ensure that it is doing what I want. This is extremely slow using VS 2010 and the latest version of Mono for Android. Just wondering if MonoDevelop will improve matters and whether it is as easy to develop using MonoDevelop rather than VS 2010 which is my normal tool.
Thanks for any advice
As far as i know the slowness is not due to Visual Studio but to the Android Emulator itself.
Debugging Monodroid on a physical device is lots faster with either VS or MonoDevelop, but then you need to buy a license to be able to deploy to anything else than the emulator..
I would keep using Visual Studio as it's far more complete and stable than MonoDevelop.
if performances are really an issue you might need to consider purchasing a license for Monodroid and use a physical Android device.
From my experience Mono Develop is more lightweight, but also more buggy. For the moment I am using Visual Studio. It compiles resources right away whereas Mono Develop sometimes does not recognize when I've added a resource. But you are right about the debugger. It is painfully slow. Other than the debugger I have found developing in MonoDroid to be fairly productive.

Resources