.NET Core is an open-source, cross-platform framework provided by Microsoft, used to develop web applications and Windows native applications. .NET Core can run on any OS like Windows, Linux, or Mac as a cross-platform framework. But this could result in varying development experiences. To solve this problem, Microsoft introduced VS Code. VS Code brings consistency in .NET Core development on Windows, Linux, and Mac.
This guide will show you how to create a .NET Core Project in Visual Studio Code.
Download .Net Core SDK
Download and install .Net Core SDK from dotnet.microsoft.com/download with default configurations.
Create a .NET Core project
After installing the .NET Core SDK, follow the steps below to create a .NET Core project in VS Code:
- Select the Open Folder button from the “Explorer” pane in VS Code.
- Create a folder in your preferred directory to store your programs. For example, I will choose “Test.”
- From the top-level View menu, select Terminal. Alternatively, you can press Ctrl + ` on your keyboard.
- To create a new .Net Core project, run the following command in the Terminal:
dotnet new mvc
- You will notice multiple files inside your folder in the Explorer pane. These files will have a simple template to let you start working on your .Net Core project.