The options to publish a project
Visual Studio has two ways to access the Publish option and then display the possibilities incorporated to deploy a project.
In the menu, we can access this option by navigating to Build | Publish [Project name]. By default, the main project in the current solution is selected, as shown here:
Figure 10.1 – The Publish SPAProject option in the Build menu
Another possibility is to right-click on the project that we want to publish in the Solution Explorer tab (see Figure 10.2):
Figure 10.2 – The Publish… option on the menu after right-clicking
Whatever the chosen option, Visual Studio will display a modal window to give you the deployment types supported for the main project in the solution or the project selected, as illustrated in the following screenshot:
Figure 10.3 – The options to publish a project in Visual Studio
Let's review these...