Computer Magic Logo
Create Solution

Sunday, June 7, 2015

Published by Aristotelis Pitaridis

To create a new Solution in Visual Studio we go to the File menu and select the Project command from the New submenu or press the key combination Ctrl + Shift + N. The New Project dialog box will appear on the screen.

We select the ASP.NET Web Application from the installed Templates located on the folder Templates > Visual C # > Web. In the Name text box we type the name of the Project. For our example you type HelloWorld. In the Location text box we define the folder where we want to place the Solution. For easier selection of the folder we can click the Browse button which is located on the right side of the text box. Optionally we change the solution name. In our own example we will let the Solution name to be the same as the Project’s name. Make sure that the checkbox Create directory for solution is checked so that Visual Studio will create a folder where it will put Solution’s files. Once we finish we press the OK button in the lower right corner of the dialog box and the New ASP.NET Project dialog box will appear on the screen.

In the new dialog box, we select the Template Empty. No need to change anything because Umbraco will download and set up our Project to work correctly. To complete the process we press the OK button in the lower right corner of the dialog box and the Solution will be created and it will appear in the Solution Explorer panel.

Now that we created the Solution let's see how we can add Umbraco in the solution. We will use NuGet which allows us too easily install and upgrade packages in a project. This can be done by using two different ways. The first way which is easier for beginners is to right click on the HelloWorld project and from the submenu that appears on the screen we select the command Manage NuGet Packages. The Manage NuGet Package dialog will appear on the screen.

On the upper right corner of the dialog box, in the text box Search Online we typing the word umbracocms. A list of packages appears on the screen and the first is for Umbraco CMS.

We select the package and we click the Install button on the right side of the list and the installation of Umbraco and all the necessary packets needed to operate the Umbraco CMS will start automatically.

A dialog box to accept the terms of use of packages for the packages to install will appear on the screen.

We press the I Accept button located in the lower right corner of the dialog box and once the installation is complete we can close the Manage NuGet Packages dialog box.

The second way to install Umbraco is for more experienced users of Visual Studio and in order to do it we open the Tools menu and choose the command Package Manager Console from the NuGet Package Manager submenu.

In the console we type the "Install-Package UmbracoCms" command and we press the Enter key to start the installation of Umbraco.

Now Umbraco is ready to use.