The Solution Explorer

The Solution Explorer enables you to group and manage the many files that make up your application. A solution simply contains multiple projects (applications or assemblies). A project groups files related to its type. For instance, you can create a website, Windows Forms application, class library, console application, and more. The files inside the project containers represent your code in terms of web pages, forms, class files, XML, and other related items.

Figure 2.22 shows the Solution Explorer undocked from the IDE. The solution contains two applications (called projects). There is a Windows Forms application (OrderEntry) and a web application (WebSample).

Image

FIGURE 2.22 The Visual Studio 2015 Solution Explorer with two projects loaded.

You use the Solution Explorer to navigate the many items in your projects. You can access an item by first selecting it and then double-clicking it. Solution Explorer opens the given designer or editor associated with the type of file you request. For example, opening a file with the extension .cs opens the C# code editor. You can also add a new item (class, image, form) to your application from here by right-clicking a project or folder and selecting the Add menu. Finally, you can use the Solution Explorer during source control scenarios to check items in and out of source control. The Solution Explorer is covered in depth in Chapter 4.


Tip

You can select an item in the Solution Explorer (single-click) to view its contents without actually opening the file for edit (double-click). In this scenario, Visual Studio shows you the file, and you are able to browse its contents. However, if you select another file, the previous file does not remain open, and you are not responsible for closing it. Note that you can leave it open in the IDE by pressing the Keep Open tiny icon at the right of the filename.


..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset