Filtering out projects in large solutions with Visual Studio Solution Filters

If your working on a large solution with many projects in Visual Studio you can speed up VS load time by excluding the projects you don’t need loaded (perhaps because other developers are working on them) using a Solution Filter.

If we have the following normal (unfiltered) solution we can apply solution filters very easily.

No Solution Filter applied

  1. Right click on any non relevant projects and select ‘Unload Project’.
  2. Right click on the solution and click ‘Save As Solution Filter’.
  3. Double click the solution filter file (.snlf) to open the filtered solution.

Solution filtered

In the above example I’ve excluded two projects (ConsoleApp2 and UnitTestProject1). The markup in the .snlf file is simple as can be seen below.

Visual Studio Solution Explorer

Leave a Reply

Your email address will not be published.