Visual Studio 2015 C# rename a control horribly slow - refactoring

Refactoring/renaming a control in Visual Studio Community 2015 (either in the form designer code file, or through the graphical designer) is very slow and each change uses an additional 60 MB of RAM memory.
I did read the Visual Studio 2015 C# rename horribly slow post, but that person's solution does not apply to me, because I did not add any extensions: this is Visual Studio "right out of the box".
open the project: 170 MB (the Designer is closed)
rename a control: 350 MB (in the code file)
revert the naming: 420 MB
rename a new control: 500 MB
After 2 or 3 renamings, I have to quit the application and open it again.
Many people must have encountered this, yet I don't see much discussion about it.
I just switched from VS 2010, which did not have this problem.
EDIT: I restarted the computer, no other programs running: same problem. Now Window 7 tells me: "Microsoft Visual Studio is busy / Microsoft Visual Studio is waiting for an internal operation to complete. ... "
Are there any solutions or workarounds?

Related

Visual Studio Installer Project Extension running in VS 2017 Pro thinks it's running in VS 2013 Pro

Got a big problem with the Visual Studio 2017 Installer Projects Extension for Visual Studio 2017 Professional. I added a Visual Studio Installer Setup project to a solution and set it up the way it's basically supposed to be done (Primary Output in the Application Folder and an icon in the Desktop Folder is all that was needed). Then I right-clicked on the Setup project, clicked "Build" and then I get this:
Please wait while Windows configures Microsoft Visual Studio Professional 2013.
And then it stalls indefinitely. I have to close Visual Studio in Task Manager to stop everything. What's more, I'm Visual Studio Professional 2017, not 2013. I used to have Visual Studio 2013 Ultimate, but I uninstalled it. What could possibly be causing the confusion?
It appears that you have also got Visual Studio 2013 installed, and that there is as conflict between 2013 and 2017 because that message is a Windows Installer repair of VS 2013. Something is happening during your build that requires the VS 2013 installation to be repaired. The Windows Event Log (Application) will have an MsiInstaller log entry saying which component appears to be broken. If you post that information there may be a clue to the problem. If you (for example) have manually removed anything that may belong to the VS 2013 installed product then that would cause the same kind of problem.
You have this similar problem:
Rebuilding Visual Studio Installer project, launches Visual Studio 2013 seetup
Visual Studio 2015 msi build initiates another installation
When you say it stalls indefinitely, I would expect it to ask for the Visual Studio 2013 install image so that it can repair it. If you go to Programs&Features and manually repair VS 2013 it might fix the problem.
I also had Visual Studio 2013 installed as mentioned by #PhilDW.
Navigating to Event Viewer → Windows Logs → Application I found loads of warnings:
Detection of product '{9C593464-7F2F-37B3-89F8-7E894E3B09EA}', feature 'Visual_Studio_Professional_x86_enu', component '{E3FF99AA-78B9-4A06-8A74-869E9F65E1FE}' failed. The resource 'C:\WINDOWS\Microsoft.NET\Framework\URTInstallPath_GAC\' does not exist.
The key here being that the folder C:\WINDOWS\Microsoft.NET\Framework\URTInstallPath_GAC\ did not exist thanks to an answer in the first link provided by #PhilDW.
Created the missing final folder URTInstallPath_GAC in the path mentioned and the installers now build really fast whereas before they used to take forever (sometimes literally!).

Working in Visual Studio Professional 2015 while updating to Update 3 - Visual Studio starts to fail

I got the Visual Studio Professional 2015 Update 3 and launched the executable (vs2015.3.exe) while Visual Studio was still running. I got the following "Setup warning" but thought that a computer restart was fine as long as I could work during the update.
Please close visual studio now to reduce the chance that a computer
restart will be required later
Visual Studio immediately started acting strange, loosing Intellisense among others. I decided to restart Visual Studio and was then met with the error:
Cannot run when setup is in progress
I then canceled the update and thought that I could install this update during the night instead. When I opened Visual Studio again and tried to load a project I got the following error:
Project '' could not be opened because the Visual C# 2015 compiler
could not be created. Please re-install Visual Studio.
I then opened Update 3 executable again to complete the update. I was met with this feature list and could not do anything:
Restarted the computer but was met with the same dialog. I then opened Visual Studio again and this time the project loaded but without Intellisense. Restarted Visual Studio and now the project would not load at all. I then deleted the content of these 2 folders and ran devenv /resetsettings
C:\Users\%USERNAME%\AppData\Roaming\Microsoft\VisualStudio\
C:\Users\%USERNAME%\AppData\Local\Microsoft\VisualStudio\14.0\ComponentModelCache
I could now open the Visual Studio project normally again but I still could not get features when running the Update 3 executable. Is there anything else I can do or do I need to reinstall Visual Studio completely? I think it is really bad that the warning Microsoft gives is that a computer restart might be required when obviously the program cannot run in the background while updating.
Solved it by going to Control panel -> Programs and Features -> Microsoft Visual Studio Professional 2015 with Updates. Click "Change" and then select "Repair".

How to speed up VS.NET 2015 solution loading and pasting into ASPX source view?

I just installed Microsoft Visual Studio Community 2015 Version 14.0.23107.0 D14REL hoping for a performance improvement over 2013. When I load a very large ASP.NET web forms solution, I have to wait over 30 seconds. After it is loaded, when I try to paste text into the source view of an ASPX page, I am intermittantly enduring a 15+ second wait. A popup tells me that VS.NET is busy performing background tasks.
I'm running Windows 7 Pro SP1 x64 on a recently purchased Dell Precision workstation with 16GB RAM and an Intel Xeon E3-1240 v3 # 3.40GHz. My C: drive is on a SamSung SSD. Here is what I would like to know:
What can I do to make VS.NET 2015 perform faster?
I found that VS.NET was I/O bound because when I disabled Microsoft Security Essentials entirely the performance was acceptable. There is an option in MS Security to exclude certain processes from security scans. After I added ~/Program Files(x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe to MS Security Essentials' list of excluded processes, it ran acceptably fast.
If you are using ReSharper then turning it off makes performance considerably faster. Similarly Node.js Tools for Visual Studio can slow down your IDE.

visual studio 2010 very slow to load and build

I have installed Visual studio 2012 on my system and after that my system is damn slow. Even Visual studio 2010 ( which was installed before) is very very slow. It takes 15 minutes to open. 5 minutes to buld a simple hello word program. I recently installed only Vs 2012 and Windows 7 SP1.
Please tell me how I can speed up VS 2010 ( not 2012). It has telerik controls added as well. I am ready to remove it if necessary.
Thanks
something tells me it might just be a slow pc?
EDIT: so as not to just leave a troll post, i recently got VS 2012 and it hasnt affected my load/build or compile times at all
If Vs 2012 Try this: Remove all the "UNUSED" MS Access or other data files in the App_Data folder - including any that are in sub folders. If you have old versions in App_Data or in any sub folders then Visual Studio will have to open all of them even if your website does not use them. In my case it took 2 - 3 minutes to open the website and even longer to close. I had 50 or so backups and test databases I kept in various folders just a archives. I just moved them to another folder in my website. Wow - Visual Studio now opens in a few seconds.

Visual Studio IDE freezing while initializing ToolBox

I'm working on Visual Studio 2008, Smart Client + infragistics controls are installed and we have more than 50 User Controls. When opening the Visual Studio "Tool Box", Visual Studio is completely freezing. I couldn't work after that. I have to kill the process and open again. At this point CPU usage is around 50, CPU usage is 1 or 2 when i work on code. How to get rid out of this issue. This is really time consuming process.
try:
Visual Studio 2008 takes a long time to open the toolbox for a solution that contains many custom controls
The KB article recommends downloading and installing a hotfix.

Resources