Create an ASP.net Core Website in Visual Studio 2017

Posted by Me on September 26, 2018

This post is part of the Create an Orchard core site and deploy using Azure DevOps series.

We are going to create a .net core website from scratch in visual studio 2017.

  1. In visual studio create a new project.

  2. Under the Web section select ASP.NET Core Web Application template.

  3. Set the Name, Solution Name and Location where you want the solution created

  4. Make sure .NET Core and ASP.NET Core 2.1 are selected. Then choose the Empty template and click OK.

  5. Once it is all set up you will see the following project structure:

  6. Click play.

  7. And boom! done.

Open the Startup.cs file to see the magic:

Awesome right!.... Well OK, so it is doing a Response.Write which isn't a great way to build websites, but what you see here is the very basics of .Net Core. What you do next is totally up to you, for example you can turn this into an MVC site or a Web API site or an Orchard Core site. For more info on what you can do with .Net Core check out Microsoft's Introduction to ASP.NET Core

Before we add Orchard Core we are going to add our code to source control: Add Project to Source Control in Azure DevOps (VSTS)