Introduction
Learn how to work with a subset of projects in a Microsoft Visual Studio solution.
Scenario
A developer is given a task where to write unit test for the first project which has several projects as shown below that are not needed.
For the task, in this case, only the first two projects are needed. This is what would make things easier.
How to achieve what is shown above
- In Solution Explorer, right click and select New Solution Explorer View. This will open a duplicate of the current Solution Explorer undocked.
- In the original Solution Explorer (in this case), select the first project.
- right click and select Scope to this which places a filter so that now only this project is shown
- In the second Solution Explorer, select (in this case) the second project followed by Scope to this.
- Now drag the undocked Solution Explorer under the docked Solution explorer and tag/touch the dock item as per below.
Getting back to where we started
- Close the second/bottom using the close button
- To remove the filter on the first, click the house icon.
What about extending this to more views?
Yes this is possible yet rather than doc as per above consider floating the Solution Explorer windows in a secondary monitor.
Top comments (1)
Cool tip.