Unlimited Plugins, WordPress themes, videos & courses! Unlimited asset downloads! From $16.50/m
by
Lessons:10Length:1.5 hours

Next lesson playing in 5 seconds

Cancel
  • Overview
  • Transcript

2.1 What You Need

There are several tools you need in order to build ASP.NET Core applications. In this lesson, I’ll show you what they are and how to get them.

Related Links

2.1 What You Need

Naturally, before we do anything, we need to go over the things that you will need to follow along in this course. And the most obvious thing is .NET Core. So the first thing you want to do is point your browser to microsoft.com/net and then go to the Downloads link. This is going to take us to the downloads for the .NET Framework. Now, we have three choices. We have the .NET Framework, which is the full-blown version of .NET, but we want .NET Core. This is the cross-platform version. And it's also a lot smaller than the .NET Framework. And we also want to install the SDK. You could install the runtime, but you're not going to get any of the tooling that we would need to write .NET Core applications. So be sure to choose SDK. It is the default. And then from here, you get to choose what version of .NET Core. There is the long-term support, which is currently version 1.03. And then there's the current version, which is 1.1. Now, at this point in time, there's not a huge discrepancy as far as features between 1.1 and 1.0.3. So for the sake of this course, you can download either of these and you would be fine. But with saying that, I'm going to be installing and using the current version. And then from here, we get to download the .NET Core SDK for our operating system. Now, I'm currently on macOS. So the first thing I want to do is download this package. So you can download that and install it. And then you will also want to go down to where it says Step-by-step instructions and go to macOS. Because there are some dependencies that you do need to set up in order to debug your .NET Core applications. And that's basically right here. You basically want to install OpenSSL and then run these other commands, and then you will be good to go. Now, it doesn't matter what order that you do those things in. And the reason why I say that is because I did it in reverse order. I installed the SDK and then I installed OpenSSL. And that works for me. It will probably work for you, but chances are that might change. So just follow the order in steps. Install OpenSSL and then the .NET Core SDK. Now, for Linux, I have no idea. I have not installed it on Linux. And the same for Docker. So you will definitely want to follow the step-by-step instructions for Linux, and I don't know what you need to do for Docker. So that is how to get .NET Core on your machine for a non-Windows machine. Now, for Windows, we have quite a few other options. The first is, do we want 32-bit or 64-bit. And really that depends upon where you plan on running your applications. There are some dependencies that might be 32-bit only, so you would definitely want to go with the 32-bit SDK. But if you don't have to worry about 32-bit dependencies, then go for the 64-bit. But you also want to install the SDK depending upon what code editor that you plan on using. If you plan on using Visual Studio, then you will want to install the .NET Core tools for either Visual Studio 2015 or 2017. And those are in addition to the SDK. So there's that. But if you plan on using some other code editor like Visual Studio Code or Sublime, Atom, there's a ton of other things, then you don't have to worry about those tools. All you really need is the SDK and you are good to go. Now, for this course, I'm going to be using Visual Studio Code. So I'm not going to be using Visual Studio. And if you are on Windows and you plan on using Visual Studio, there are going to be some differences there, because I'm going to be using command line tools and things like that. But you can take the same concepts as far as code is concerned and apply them to your projects in Visual Studio. The code is going to be the same. How we build and run our applications is going to be a little bit different. So you can use Visual Studio Code if you want to. That is at code.visualstudio.com. This is cross-platform. So if you are on Mac OS, Linux, or Windows, then you can use Visual Studio Code. But you can also use any other code editor that you want. It doesn't matter because we are going to be using command line tools to do compilation and all that wonderful stuff. So the next thing you need is NPM, Node Package Manager. Now, this is a tool that's useful not just for this course but for web development in general. So if you don't have it, install it and keep it installed. Because NPM itself is very useful, but there are many other tools that use NPM to make our lives a little bit easier. So you will want to go to nodejs.org and then you will download Node.js. Now, in our case, it doesn't matter if you go for the long-term support or if you go for the current version. Because we are just installing Node so that we have NPM. The install is very straightforward, just take the defaults, but make sure that you installed NPM. That is an option in the install. And after you install Node.js, we're going to use NPM to install some other tools. The first is called Yeoman, which is a scaffolding tool. Basically, people write yeoman generators so that we can get started writing our applications very quickly. So we want to type npm install -g. The -g means that we are installing this globally. And then simply yo. And whenever you press Enter, NPM is going to install the Yeoman package. Now, this could take a few minutes depending upon the speed of your machine and the network. But once you have it, then you will be ready to install the next tool, which is something called Bower, which is a dependency management tool. So once again, npm install -g, and then simply bower. Press Enter, and then that will install Bower. This again could take a couple of minutes. But once it's done, there's one other thing that we need to install. And that is the Yeoman generator for ASP.NET Core. And to do that, we'll use npm once again, install -g. And this is called generator-aspnet. This is going to install the Yeoman generator for ASP.NET Core applications so that we can use this generator to quickly get started writing our own applications. So you now have everything that you need to start writing ASP.NET Core applications. And in the next lesson, we aren't going to really use any of them. Just so that you have an idea of what ASP.NET Core applications are and how they run on your operating system.

Back to the top