This is the third of a new series of posts on ASP .NET Core. This week, we’ll be looking at various types of Pages you may encounter in an ASP .NET Core web app:
- Razor Pages (new as of v2.0)
- the experimental Blazor (C# in the browser!)
- the more familiar MVC Views (aka Razor Views)
If you already know how to create each type of project, feel free to jump past section 3B below.
Before you begin
Before you begin, make sure you download an IDE or code editor to open and run the code samples. My recommendations are below:
A. Visual Studio Code: https://code.visualstudio.com
B. Visual Studio 2017 (v15.8 or later): https://visualstudio.microsoft.com/vs/
To get the latest SDK, download .NET Core v2.1 or higher:
.NET Core Download: https://www.microsoft.com/net/download
To use Blazor in Visual Studio 2017, you must install the ASP .NET Core Blazor Language Services extension from the Visual Studio Marketplace:
Blazor extension: https://marketplace.visualstudio.com/items?itemName=aspnet.blazor
The instructions below will cover both Command Line Interface (CLI) commands and IDE/editor steps to create, build and run the code samples.
Sample code: https://github.com/shahedc/PagesDemo