Join Jess Chadwick for an in-depth discussion in this video Development environment setup, part of ASP.NET Core: Razor Pages.
- [Instructor] Now that I've introduced you to Razor Pages at a high level, let's talk about what you'll need to do, in order to get your machine set up to develop Razor Pages applications. Because Razor Pages is built on top of the ASP.NET Core runtime, the setup required to begin building Razor Pages applications is no different than setting up any other ASP.NET Core application. In a nutshell, you're going to need two things: the .NET Core runtime and a code editor or IDE that supports .NET Core development.
Now, I'm using Visual Studio 2017 Community Edition, which I downloaded and installed from Microsoft's website at visualstudio.com. I happen to use the Community Edition of Visual Studio 2017, because it's free for teams of five people or fewer, but you're free to select whatever edition of Visual Studio you like. Regardless of the edition you select, Visual Studio 2017 includes the ASP.NET Core 2.0 framework in its installation package.
So, just be sure to select the ASP.NET and web development module in the Installer, and you should be all set. If you're using Windows, you'll probably want to install Visual Studio 2017, just like I have on this machine. However, if you're using another operating system, keep in mind that .NET core is a cross-platform development platform, so don't be disappointed to learn that Visual Studio only runs on Windows. Instead, head on over to microsoft.com/net/core.
Then, choose the platform you'd like to develop on and follow their amazing Getting Started documentation to get your environment set up. Even though, I'm going to be using Visual Studio on a Windows machine throughout this course, once you've configured your environment using these instructions, you should have no problem writing and running the same code that I write in this course on Mac or Linux, using other popular editors, such as Visual Studio Code or Visual Studio for Mac.
- Creating a new application
- Setting up pages
- Rendering dynamic content
- Reusing markup with layouts
- Increasing the maintainability of pages
- Processing data
- Validating input
- Securing an application