Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unloading different sets of projects in Visual Studio

Is there an extension to Visual Studio that provides the ability to create something like an 'unloaded project profile' for a solution?

I have a solution with a large number of projects (~100). When working on a certain part, I can unload unrelated projects to improve performance. I'd like to be able to save this group of unloaded projects, so that when I switch to working on a different part I can then cause it's projects to be loaded instead.

like image 258
David Gardiner Avatar asked Mar 07 '13 01:03

David Gardiner


People also ask

What does unloading a project do in Visual Studio?

It can be useful to unload a project from a solution while resolving circular dependencies between projects or conflicts with different versions of the . NET framework between projects. It is considerably more difficult and error-prone to directly edit the configuration files with Notepad. Save this answer.

How do I load all projects in Visual Studio?

In Solution Explorer, select the projects you want to load (press Ctrl while clicking to select more than one project), and then right-click on the project and choose Reload Project. Visual Studio will remember which projects are loaded the next time you open the solution locally.

Can a Visual Studio solution contain multiple projects?

We have a Visual studio solutions with multiple projects(20 to 25). It was easy to create repository structure in VSS as individual projects.

How do I open multiple projects in Visual Studio?

To open a second instance of the integrated development environment (IDE), right-click on the Visual Studio icon in your dock or Applications folder, and select New Instance.


2 Answers

I ended up writing my own extension to do this - Loaded Projects, for Visual Studio 2012.

But then I discovered Funnel (by Dimitri Dering), which takes the same concept to the next level, with a more polished UI and additional features.

like image 65
David Gardiner Avatar answered Oct 11 '22 12:10

David Gardiner


Visual Studio 2019 has a new concept called "Solution Filter Files".

https://docs.microsoft.com/en-us/visualstudio/ide/filtered-solutions?view=vs-2019

You can right click on a solution after you've unloaded what you want and do "Save as solution filter". It creates a file which is a list of projects to INCLUDE in opening. So if a new project is added, I don't think it would be picked up.

Another important feature to note is the right click "Show unloaded projects" and the right click "Hide unloaded projects".

FYI - The file looks like this:

{
  "solution": {
    "path": "IvaraDotNet.sln",
    "projects": [
      "AssetManagement\\StaticLoad\\AssetManagementStaticLoad.vcxproj",
       ....
      "framework\\oqpersman\\oqpersman.vcxproj"
    ]
  }
}
like image 24
Derek Avatar answered Oct 11 '22 13:10

Derek