This section discusses installing Visual Studio 2017 and SQL Server Management Studio and confirming the installation of .NET Core SDK and Shared Framework host.
- [Narrator] If you haven't already done so, it is now time to install Visual Studio 2017 and SQL Server Express. The Visual Studio installation experience has changed fairly dramatically since prior versions. Installation is now divided into workloads and this is a vast improvement over the prior installation experiences. You can select the very focused install for just what you want to work on. In our case, we want to select ASP.NET and web development and the .NET Core cross-platform development workloads.
Shown here is the installer and the ASP.NET and web development is here under Web and Cloud. And you'll also want to go down to .NET Core cross platform development. Under Individual components, I also prefer to check the .NET Core runtime right there at the top. Once you have installed Visual Studio open up a command prompt and let's confirm the installation of .NET Core.
The first command we'll do is where dotnet and that just shows where the .NET executable is located. If we just type dotnet itself, it'll execute that because that directory was added to the path by Visual Studio. And we see that the .NET Core shared framework host that I'm running on my machine is version 1.1.0. There are several different components of .NET Core and they all seem to have a different version number, and that can cause a little bit of confusion.
So I'd like to go a little deeper into the different parts of .NET Core at this time. As we've already seen, a shared framework host is version 1.1.0. If we want to get the version for the .NET command line tooling we enter in the command dotnet --info and you can see that the version of the command line tools that I have on my machine is 1.0.4.
When you install a SQL Server Express in Management Studio you'll see this all too familiar screen. If you want to run this class with SQL Server Express you can certainly choose that top line option, Use SQL Server stand-alone and install that. In that installation process, you will be prompted to install the SQL Server Management tooling if you so choose. If you just want to continue to use local DB which was installed by Visual Studio 2017 and you don't need to install SQL Server Express you can just install SQL Server Management Studio, and you can click on that link in the installer, or if you want to eliminate the middle man, you can go straight to Management Studio download at that link that is on your screen.
- Creating the .NET Core project
- Adding Entity Framework
- Migrating the data access layer (DAL)
- Configuring services and the HTTP pipeline
- Adding remaining services to the dependency injection container
- Migrating controllers and actions
- Testing the services