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.
Under the Web section select ASP.NET Core Web Application template.
Set the Name, Solution Name and Location where you want the solution created
Make sure .NET Core and ASP.NET Core 2.1 are selected. Then choose the Empty template and click OK.
Once it is all set up you will see the following project structure:
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)
Originally published on my personal blog: Create an ASP.net Core Website in Visual Studio 2017
Top comments (0)