ASP.NET Core - Setup Development Environment
This is a quick post to show how to setup an ASP.NET Core development machine.
Follow the below steps to setup an ASP.NET Core development environment and test it by downloading and running an example ASP.NET Core application.
- Download and Install the .NET Core SDK
- Download and Install Visual Studio Code
- Install the C# Extension for VS Code
- Run an example ASP.NET Core application (optional)
The .NET Core SDK includes the .NET Core runtime and command line tools required to build and run .NET Core applications.
Download the .NET Core SDK from https://www.microsoft.com/net/download/core.
Install the .NET Core SDK by opening the downloaded installer and following the prompts.
Test that the .NET Core SDK was installed successfully by running the command
VS Code is a free code editor that runs on Windows, Mac and Linux.
Download VS Code from https://code.visualstudio.com/.
Install Visual Studio Code by opening the downloaded setup file and following the prompts.
Launch VS Code to test that it installed correctly.
The C# extension adds support to VS Code for developing .NET Core applications.
Open Visual Studio Code and follow these steps to install the C# extension:
- Click the Extensions icon at the bottom of the left menu bar.
- Search for "c#" in the extensions search box.
- Select "C# for Visual Studio Code (powered by OmniSharp)".
- Install the C# extension by clicking the "Install" button.
You should see the following in output window of VS Code.
Installing C# dependencies...
Platform: win32, x86_64
Downloading package 'OmniSharp for Windows (.NET 4.6 / x64)' (33539 KB).................... Done!
Integrity Check succeeded.
Installing package 'OmniSharp for Windows (.NET 4.6 / x64)'
Downloading package '.NET Core Debugger (Windows / x64)' (42010 KB).................... Done!
Integrity Check succeeded.
Installing package '.NET Core Debugger (Windows / x64)'
Downloading package 'Razor Language Server (Windows / x64)' (50835 KB).................... Done!
Installing package 'Razor Language Server (Windows / x64)'
If you receive the error
The .NET Core SDK cannot be located. .NET Core debugging will not be enabled. Make sure the .NET Core SDK is installed and is on the path. Try restarting VS Code and reinstalling the C# extension, if that doesn't work see the C# extension troubleshooting page.
Your ASP.NET Core development environment is now setup and ready to go!
For instructions on how to download and run a simple example application in your new development environment see this post.
Need Some ASP.NET Core Help?
Search fiverr for freelance ASP.NET Core developers.
Follow me for updates
When I'm not coding...
Me and Tina are on a motorcycle adventure around Australia.
Come along for the ride!