From the course: Visual Studio Code for .NET Developers
Unlock the full course today
Join today to access over 25,200 courses taught by industry experts.
Creating a new .NET project
From the course: Visual Studio Code for .NET Developers
Creating a new .NET project
- [Instructor] In this video you'll learn how to create a new .NET project using the .NET CLI. We'll walk through the process of initializing the new project, exploring the project structure, and adding dependencies and packages. Let's start by creating a new project with the .NET CLI. In order to do this, we're going to need to access the command line. You can use your systems terminal or command prompt or you can use the one that is built into Visual Studio Code. You can access it from the terminal window and select New Terminal. From here, let's go to the location of where we want to create our project. And now we'll type in dotnet new console -n project. The dotnet new command allows you to create a new project based on a specific template. In this case, we're using the console template. The -n allows you to name the project and it'll put this inside of the project folder based on the name you provide. Now that…