Installing Umbraco 7 In Visual Studio Via Nuget

Like the majority of the major CMS’s, you can install Umbraco via Nuget.  I’ve talked previously about How To Install Umbraco 7 In Less Than 5 Minutes and How To Install Umbraco 7 Manually. Installing Umbraco via Nuget means you have all your Visual Studio solutions and project files set-up for you as you start developing.

Creating A Blank Website

The first thing we need is to create a folder to store the project files.  After that open up Visual Studio, click File -> New Project.

Umbraco_Create_Clean_Website

Create a new project of type ASP.Net web application and call it whatever you want.  DO NOT USE THE WORD UMBRACO IN YOUR PROJECT.  If you do you will get an error when you try and launch the installer that has:

Parser Error Message: Could not load type ‘Umbraco.Web.UmbracoApplication’.

Source Error:

Line 1: <%@ Application Inherits=”Umbraco.Web.UmbracoApplication” Language=”C#” %>
Line 2:

Source File: /global.asax Line: 1

After you have added your solution name, you need to create the project:

installing_umbraco_nuget_blank_solution

The recommended way is to select the ‘Empty’ option, but you can also select the MVC or WebForms option. The only difference is that you’ll be asked to override the Global.ascx and the web.config.

installing_umbraco_nuget_from_packahe_manager

Next you need to open up Nuget, search for Umbraco and click install.  It’s important you agree to the override prompts that will flash-up, if you didn’t select the Empty option.

After the Umbraco package installs, you can then hit F5 or the play button to load up the Umbraco Installer within your browser.  With the Umbraco installer loaded, you should now hit the standard Umbraco installation process.
Add in your admin account username and details.

installing_umbraco_login_installer

Hit the customize button to add in your database preferences.

installing_umbraco_sql_installer

Install your sample site and off you go.

installing_umbraco_sample_site_installer

If you want more information about this process, I’ve previously written about it here.

Conclusion

There you have it.  Installing Umbraco 7 is very easy in all flavours, whether you use the installer, manually install or it use Nuget.  Personally, I prefer to use Nuget as you also get all your visual studio files set-up.

Jon D Jones

Software Architect, Programmer and Technologist Jon Jones is founder and CEO of London-based tech firm Digital Prompt. He has been working in the field for nearly a decade, specializing in new technologies and technical solution research in the web business. A passionate blogger by heart , speaker & consultant from England.. always on the hunt for the next challenge

More Posts

3 replies

Trackbacks & Pingbacks

  1. […] Installing Umbraco 7 In Visual Studio Via Nuget […]

  2. […] written a comprehensive guide about the installation process here, Installing Umbraco 7 In Visual Studio Via Nuget. For a quick re-cap, create a normal MVC project, in Nuget search for Umbraco and follow the […]

  3. […] In case you don’t know how to install Umbraco, then I suggest you read this article, Installing Umbraco 7 In Visual Studio Via Nuget […]

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *