Solution Explorer provides you with an organized view of your projects and their files as well as ready access to the commands that pertain to them. A toolbar associated with this window offers commonly used commands for the item you highlight in the list. To access Solution Explorer, select Solution Explorer on the View menu. For more information, see.
The options available in dialog boxes, and the names and locations of menu commands you see, might differ from what is described in Help depending on your active settings or edition. This Help page was written with the General Development settings in mind. To view or change your settings, choose Import and Export Settings on the Tools menu. For more information, see.
- Tree View
This standard Solution Explorer view presents the active solution as a logical container for one or more projects and the items associated with them. You can open project items for modification and perform other management tasks directly from this view. Because different projects store items in different ways, the folder structure in Solution Explorer does not necessarily reflect the physical storage of the items listed. For more information, see.
When the Track Active Item in Solution Explorer option is selected in the, Solution Explorer automatically opens the folder for the active item, scrolls to its tree view node, and selects its name. The selected item changes as you work with different files within a project or solution, or different components within an Integrated Development Environment (IDE) designer. When this option is cleared, the selection in Solution Explorer does not change automatically.
To associate a file with a solution but not with a specific project, add the file directly to the solution. A new node for the added file will then appear within the Solution Items folder. Other files not yet associated either with the active solution or with any of its projects are placed in the Miscellaneous Files folder. These are generally files opened or created on your local drive while working with a project.
To display all miscellaneous files in tree view, select Show miscellaneous files in Solution Explorer in the.
- Project in Bold Font
A project shown in bold font is selected as the Startup Project for running and debugging purposes. If there is more than one startup project, the solution node in the tree view is shown in bold font. Startup projects run automatically when you start the Visual Studio debugger. By default, the first project created in the solution is designated as the startup project, but you can change which projects run first when you build or run your solution For more information, see.
When the Only build startup projects and dependencies on Run option is selected in the, only the startup project and its dependencies are built when you:
Press F5 or choose the Start command from the Debug menu
Press Control+Shift+B or choose the Build Solution command from the Build menu.
When this option is cleared, either of these actions builds all projects, dependencies, and solution files.
- Solution in Bold Font
A solution shown in bold font indicates that the option to run multiple projects when the debugger starts is enabled. Although the option is enabled, it does not mean that any projects have been selected to run; by default, they are set not to run.
For more information about running multiple projects when you start the debugger, see.
You can open files, add and remove items, and perform other management tasks. Each project template provides its own folders and icons for indicating the nature of the items in the project. You can add folders and items to meet the needs of your individual development project. The icons can indicate a variety of information about an item. For example, depending on the project, you might see an icon indicating that an item is an HTML file or that a file is under source control. Each project template also determines which tools and designers are associated with a file type as well as the commands available for item management.
Selecting a solution, project, or item in the list dynamically updates the commands that are available to you. For example, the Copy Web command is available only from Solution Explorer's toolbar if a Web application is selected in the list. You can double-click a file to display it in the designer, tool, or editor associated with the file's type. You can change the default editor for some file types by right-clicking the file and then choosing Open With on the shortcut menu.
You can select multiple items in a single project or multiple items spanning several projects. Select multiple items when you want to perform batch operations (simultaneously opening multiple files for editing, for example) or when you want to determine or edit the intersecting properties of two or more solution items. When you select multiple items, the available commands represent the intersection of commands common to all selected items.
For more information about specific projects, select one of the following links.
Only buttons specific to the item selected in the list appear on the Solution Explorer toolbar. For example, if you select an .asax file, a set of buttons appears on the toolbar. However, if you select an .asp file, only the Properties button appears. Because the selected project determines the toolbar icons, this list is a partial representation of those you might encounter while working in Solution Explorer.
Displays the appropriate property user interface for the selected item in the tree view.
- Show All Files
Shows all project items, including those that have been excluded and those that are normally hidden.
Refreshes the state of the items in the selected project or solution.
If you are a member of a development team working with shared project files that are merged and kept under source control, select this button to display the current state of the files included in your active solution.
- Nest Related Files
Establishes a parent and child hierarchy in Solution Explorer for files that depend on one another in Web-related projects. For example, the two files that make up Web forms would be nested together.
- View Class Diagram
Launches Class Designer to display a diagram of the classes in the current project. For more information, see.
- Copy Web Site
Opens the Copy Web Project dialog box for copying an entire Web project or collection of Web projects between Web servers. You can also duplicate a Web project on the same server under a new name. This command is available only when a Web project is selected. For more information, see.
Opens the selected item in the default editor for that item as determined by the project template. You can change the default editor for a given file type in the Open With dialog box; right-click on the file in Solution Explorer and choose Open With on the shortcut menu. For more information, see.
- View Code
Opens the selected file for editing in the Code Editor.
- View Designer
Opens the selected file for editing in the designer mode of the Code Editor.
- ASP.NET Configuration
Displays the ASP.NET Web Site Administration Tool.
- Add New Solution Folder
Adds a Solution Folder to the selected item. You can add a Solution Folder to the solution or to an existing Solution Folder.
- Unhide All
Unhides all hidden Solution Folders and projects in the solution.
Source Control Icons
Source controlled items contain special icons to reflect their status. For more information, see.