Install using Visual Studio Code
Follow these steps to set up an Umbraco project with VS Code. The benefit of using VS Code is that it is super quick to get up and running.
- 2.Once installed, launch VS Code.
- 3.Click the extensions menu at the bottom on the left side. Then search for C#, install it then press reload.VS Code install extension
Open your project folder in VS Code, your project will look something like this:
Fresh Umbraco installation
Now we need to tell VS Code how to run your project.
Open the command palette, you can use the shortcut
Ctrl+Shift+P, and type in
Tasks: Configureand select the
Tasks: Configure Taskoption:
Configure task option
Select "Create task.json from template"
Create task from template
Now select ".NET Core" as your template.
Create .NET Core Template
After this VS Code will have created a folder called
.vscodethat contains a file called
tasks.json, it's this file that tells VS Code how to build your project.
Now that we've told VS Code how to build your project, we need to tell it how to launch it. VS Code can do this for you. First, select the little play button in the left side menu, and then select the "create a launch.json file" link.
Creating launch.json file
This will prompt a menu to appear, select:
Now you'll see a green play button appear with a dropdown where ".NET Core Launch" is selected. If you navigate to the files section again, you'll see that another file has been created in the
.vscodefolder, this one is called
launch.json, it's this file that tells VS Code, to build your project, run it, and then open a browser when you press F5.
With that, you're ready to run! Press F5, or click the little green play button in the "Run and Debug" section to run your brand new Umbraco site locally.
This section continues from where we left off but covers the installation and configuration of Umbraco inside your web browser when you run Umbraco for the first time.
You will see the install screen where you will need to fill in some data before Umbraco can be installed.
Depending on the database configuration you've chosen you will have the following options:
- 1.If you've installed the template with
-ceflag, to enable SqlCE, you only need to fill out your information and click "Install". The installer will then take care of the rest.
- 2.If you've enabled SqlCE, but still want to change the database type, click "Change Database".
- 3.If you didn't enable SqlCE, you will see a "Next" button instead of "Install", which will take you to an extra step where you can configure your database.
Web Installer - Lets Get Started
When the installer is done you will automatically be logged into the backoffice.
Congratulations, you have installed an Umbraco site!
You can log into your Umbraco site by entering the following into your browser: http://yoursite.com/umbraco/.