I am using Visual Studion 2017 and lightweight solution load enabled. This is a great performance improvement, especially when I am just switching between different branches.
However, sometimes I want to load every project inside my solution. Currently I right click my solution in solution explorer and open Configuration manager which does what I want (but shows configuration manager) afterwards.
Is there a better way to achive this, preferable in the background so I can continue typing while visual studio loads all projects in the background.
Related
I'm working on a web site (not web aplication project) and I have problems with IDE performance. For example when I add a new class to the project or I'm working on an existing one and click the Solution Explorer, before the window shows there it takes a lot of time and freezes VS.
I'm looking for which options to disable in VS, because it's really annoying.
For now I unchecked the Track Active Items in Solution Explorer in Options/Projects and Solutions/General, but there must be something else.
I have VS 2012 Premium.
The Windows SysInternals website has a tool called Process Monitor (http://technet.microsoft.com/de-de/sysinternals/bb842062) that can sniff registry and file accesses by any running program. You can try to find what takes so long by using this tool.
Take a look at this article as well: http://blog.geocortex.com/2007/12/07/slow-visual-studio-performance-solved/ - in that case the reason was a folder C:\Users\$username\AppData\Local\Microsoft\WebSiteCache.
Is it possible either in the standard build or via a extension to make visual studio 2010 save all unsaved work when I switch focus to another application.
It's a feature that IntelliJ and TextMate do rather well (spot the Java developer learning C#) and it means I've gotten out of the habit of saving changes before I switch to the browser and hit refresh.
Note I'm not expecting real code to just work like this, I'm kinda hoping that changes to views and scripts can be saved on alt+tab
Someone made an add-in which does the job, go to http://cbates.net/document-autosave-for-visual-studio/
UPDATE:
Beware in VS2015 it seems that sln/csproj files are not being saved when focus is lost. This can cause some pain when you pull latest changes outside VS and forget to save project manually.
You can configure an auto-save option that allows you to set a number of minutes and VS saves everytime that number of minutes is hit, its not exactly what you require but is an option you can consider.
To configure this option, go to Tools \ Options and then click on AutoRecover in the Environment section:
We're using Visual Studio 2010 (Premium edition if it matters), and pretty happy with it. However, We're never going to use the TFS features that's included in the IDE. (We're using Jira and Subversion, as it's not just Visual Studio that we work with, but also IntelliJ and a couple other IDE's.)
Is there any way to disable the TFS portions of the IDE? It's not a big deal or anything, just for the sake of "keeping things neat."
In Visual Studio 2010, go to Tools->Options In the list, select Source Control. Set your Current source control plug-in: to None
The main "TFS" parts of the IDE are in Team Explorer - Just don't install it.
Anything else you don't want/use, I'd advise you to simply ignore - VS has support for hundreds or even thousands of different things that you will probably never use, and you can't easily "clean" them all away.
In my experience the more you alter your installation of Visual Studio the more problems you will have with it. Every custom Option you set is another thing you have to repeatedly set every time you get a new PC or install a new VS. (Although it has improved a lot since import/export options became available and reliable). I used to spend about half a day setting up a visual studio to "work well", and now I just install it and use it. Ultimately I found that it was easier to just adjust my working practices (e.g. by relearning a few keyboard shortcuts etc) than to try to bend VS to my will.
I am using the 2010 version of Visual Studio, but am having many problems with delays - my computer has a good configuration of RAM, and processor - especially when saving files.
Currently I am carrying a medium-sized project, only one open file (ASP.NET page) using a single suite of components from third party, the Telerik. And yet, in time to save, or modify the tab, the entire IDE is slow. I know there may be several factors for this problem, but I'm not carrying the computer (the problem apparently is the memory management on behalf of the IDE).
Does anyone know any way to improve it? Change settings, Windows services. Oh yes, I'm using a plugin to modify the color of the IDE and another to find (Ctrl-click) the object reference.
Memory Initialization:
Memory: 280000K
Virtual Memory: 350000K
Have you tried disabling all the plugins and make sure that it is VS that actually causes the slowdown?
I have Resharper installed and VS can be slow sometimes. I turned it off (suspend on v5), and VS is back to blazing speed. Of course, inversely coding productivity is impaired by not having Resharper.
There are many causes and circumstances that can lead to what you're describing. So I'd better recommend you to check the links bellow...
VS.Net 2010 IDE Very Slow
VS 2010 very slow
VS 2010 slow for edit of first file in project with many web references
VS2010 C#: Delay when opening a file inside IDE
I am having severe performance issues when compiling a moderately large ASP.Net website in Visual Studio 2008 (targeting .Net 3.5). I know there are some tips & registry hacks for improving compilation performance in VS 2005, are there any for VS 2008? Specifically, it seems that VS 2008 is compiling the whole website every time F5 is hit, even when no files have changed in that project since the last compile, or perhaps there is some way to skip the validation stage?
Antivirus problems: Make sure that your Antivirus program excludes your project directories! Make sure that your Microsoft.NET directory inside of your Windows directory is also on the exclusion list.
IIS vs. "Cassini" : If you can, use IIS instead of VS's integrated web server (aka "Cassini"). Doing this will prevent the server from having to restart every time you run.
Memory: Do you have enough?
I'm guessing this is an ASP.Net Website project and not an ASP.Net Web Application project. You'll get better compile performance from a Web Application project so you might consider converting it.
For a Website project, you can open the Website in Visual Studio, right click the web site project node in the Solution Explorer and click Properties. When the dialog box opens, click the Build item and set the item labeled "Before Running Startup Page" to "No Build" or "Build Page". This will prevent Visual Studio from compiling all the pages in your site and improve your local development experience at the cost of reduced compilation. Probably a worthy trade-off in your case.
If you have a lot of stuff in App_Code, you may want to move (some of) it to a seperate assembly.
Try renaming your .suo file
Watch out for Dueling Assemblies (where was this article when I was having the problem =) ?), one bad reference was killing me before. I noticed this and other potential problems by looking at the output window during the build process.
.Net 3.5 Service Pack 1 made some big performance gains at least in terms of the IDE and switching from Code to Design view. I don't know if it affects the general compilation speed, but it is worth applying if you've not yet.