This section covers the installation and configuration of the software required for the course.
- [Instructor] There are a few considerations to keep in mind when installing the required software. Starting with Visual Studio 2017, the new Installer has divided the process into workloads. And in my personal opinion, I think this is a much better paradigm than previous versions of Visual Studio. For this course, you're going to want to select the ASP.NET and web development workload as well as the .NET Core cross-platform development workload.
I also have listed on the screen some optional individual components, aren't required for the course, but I always install these when I install Visual Studio. So looking at the Installer, we want to make sure we have ASP.NET and web development selected as well as, down here all the way at the bottom, .NET Core cross-platform development. The Individual components, this is where you can select the different runtime frameworks.
I have all the way up to 4.7. You can select a .NET Core runtime, but we're also going to install that separately in the next step. Next, you will want to install the .NET Core 1.0, 1.1, and 2.0 STKs, and I always install both the 32- and 64-bit versions of those STKs. And then you can confirm the installation by opening up any command prompt, and type in dotnet - -version.
And it should come up with two or greater. And to get more information, you can do dotnet --info, and it shows that the command line tools that I have on my machine are Version 2.0.0, and the runtime environment for the Shared Framework Host is 2.0.0. Next up, is SQL Server Management Studio, and you can install that from the SQL Server Express Installer or directly from the web.
And then we're going to also want to install SQL Server Express if you want to run the Docker example. For this, when you do the install, you're going to need to select SQL Server and Windows Authentication. And then we have to enable the TCP/IP protocol and make note of the port for IPALL. So in SQL Server Management Studio, if you didn't select SQL Server and Windows Authentication, that's okay, you can change it.
Go into your Properties, Security, and then just enable it right here, SQL Server and Windows Authentication mode. Then you're going to have to add in a user ID and password. For Connections, you want to make sure that Allow remote connections to this server is checked. It is on by default, but you want to make sure. And then finally, we want to check the IP address, and we do that through SQL Server Configuration Manager.
Look at the protocols for your installed instance. TCP/IP must be enabled. And if we go into the Properties for that, under IP Addresses, go all the way down to the bottom, and for IPALL, we want to make note of the Dynamic Port. We will use this in the Docker session. And the final consideration for SQL Server Express is to open holes in the firewall for SQLBrowser and sqlservr.exe with your instance name.
So I am using ESET antivirus. The process is pretty much the same. You want to add a rule to allow communication for SQLBrowser and sqlservr.exe/MSSQL$ and then your instance name. And the protocols are TCP and UDP. Next, you're going to want to install Docker for Windows. Again, this is only if you want to use the Docker example with ASP.NET Core 2.
And when you go out to Docker, there are several versions. You're going to want to install the Stable version. Hyper-V must be enabled on your machine. So if it isn't, Docker will set it for you. And you can expect several reboots through the installation process. If you're going to use Windows containers instead of Linux containers, once it's installed and running, right-click on the Docker icon in the notification area and Switch to Windows Containers. And we'll explain more about that when we get into ASP.NET Core 2.
And that completes setting up all the software for this course.
- Running and debugging ASP.NET Core applications
- Pros and cons of migrating existing applications to ASP.NET Core.
- Built-in dependency injection
- Environment awareness and app configuration
- Web host configuration and SSL
- View components invoked as tag helpers
- Configuration and logging
- Using Razor Pages