Solution Explorer

From The Oxygene Language Wiki

Jump to:navigation, search

This is an IDE topic
Feel free to add your notes to this topic below.


Solution Explorer is the tool in the Visual Studio IDE intended to provide ability to user to manage projects and individual files inside projects. Solution Explorer window can be opened with View -> Solution Explorer menu command or with hot keys CTRL+W,S.


Solution Structure

Solution structure in Solution Explorer is presented in tree-like structure similar to Windows Explorer folders structure.

A solution consists of projects (the example solution shown on the image has two projects: Business_Processor and Business_ProcessorClient) and standalone solution items like virtual folders and individual files. When solution is built each project compiles to separate module, DLL or EXE. Different projects inside one solution can be based on different programming languges and frameworks supported by current Visual Studio installation.

Contents of the project is dependent on the project kind. But almost any project has it's Properties and References. Other elements of the project are files explicitly or implicitly added by user.


Solution Explorer Common Tasks

There are some tasks that can be performed with Solution Explorer. All commands to perform solution explorer tasks are available in the solution or particular project contect menu. To open solution context menu the user should right-click the root Solution Explorer item containing name of the solution. As well, right-clicking on any solution or project item brings context menu with commands available for selected item. All these commands are distibuted under Project, Build and Debug submenus of the IDE's main menu, so accessing them with context menu are more natural.

Adding Solution Items

User can create new solution items or add existing items to the solution. Existing items being added to the solution can reside anywhere on local or network drives. Use Add submenu of the context menu to add solution item to the solution. Items that can be add to solution are:

  • New project. Opens Add New Project window, new project's kind, name, location, language, framework can be selected there.
  • Existing project. Browses for existing project and adds it to the solution.
  • New Web Site and Existing Web Site - the same as for projects but deals only with web site projects.
  • New Item and Existing Item - the same as for projects but allows to create or add any solution item, not only project.
  • New Solution Folder. Solution folders intended for grouping solution items. Solution folders are virtual folders, no corresponding folders exist on the file system. After Solution Folder folder is created, any solution item can be placed into it with drag'n'drop.
SolutionExplorerAero.png

Removing Solution Items

Solution items can be removed or deleted with the context menu command Remove and Delete. Distinguish these two commands: Remove command excludes the item from the solution, Delete erases the item from the disk. Not all solution items support Delete command.

Building Solution

There are two commands to buid the solution:

Managing Projects

Managing project items is much similar to managing solution items. User can create, add, remove, delete project items with correcponding commands in the item's context menu. There are Build and Rebuild commands for projects as well.

There is Properties command for projects and project items. For project this command brings Project Options window, for project item - Property Browser window which content depends on the project item type.

Setting Startup Project

Startup project is a project to be executed by default with menu command Debug -> Start Debugging or F5 hot key. Any project can be set as startup with context menu command Set as StartUp Project. Though, selecting as startup only makes sense for projects compiled to EXE.

Starting Projects

Unlike Debug -> Start Debugging command, Solution Explorer allows to execute any number of executable projects with debugging. It can be useful, for example, when debugging both server and client applications. Project can be started with context menu command Debug -> Start New Instance.


Oxygene-48.png

Area: Oxygene IDE

IDE GlossaryKeywordsTypesFAQHow To

Navigation
Areas
More
Toolbox