---
title: "How to create a new .NET Core API?"  
description: "How to create a new .NET Core API?"  
author: "Steilla Mitchel"  
published: 2023-08-28  
updated: 2023-08-29  
canonical: https://www.mindstick.com/forum/159690/how-to-create-a-new-dot-net-core-api  
category: ".net core"  
tags: ["asp.net", ".net core", ".net core api"]  
reading_time: 2 minutes  

---

# How to create a new .NET Core API?

How to create a new .NET [Core API](https://www.mindstick.com/forum/160547/how-to-pass-multiple-parameters-in-url-dot-net-core-api)?

## Replies

### Reply by Aryan Kumar

There are many ways to create a new .NET Core [API](https://www.mindstick.com/articles/12641/instagram-api-upgraded-to-facebook-graph). Here are the steps on how to create a new .NET Core API using Visual Studio:

1. Open Visual Studio.
2. Click on **Create a new project**.
3. In the **Templates** pane, select **Web** and then **ASP.NET Core Web Application**.
4. In the **Name** field, type a name for your project.
5. In the **Location** field, specify the location where you want to create the project.
6. Click on **Create**.

Visual Studio will create a new project for you. The project will contain a set of files that you can use to start developing your API.

Here are the main files that are created in a new .NET Core API project:

- **Startup.cs:** This file is used to configure the application.
- **Program.cs:** This file is the entry point for the application.
- **Models:** This folder contains the models that are used by the application.
- **Controllers:** This folder contains the controllers that are used by the application.
- **Middleware:** This folder contains the middleware that is used by the application.
- **Views:** This folder contains the views that are used by the application.

You can start developing your API by adding code to these files.

Here are some additional tips for creating a new .NET Core API:

- Use Visual Studio Code to create and edit your code. It is a lightweight and powerful IDE that is perfect for developing .NET Core applications.
- Use the .NET Core CLI to build and run your application. The .NET Core CLI is a command-line tool that can be used to automate tasks, such as building and running your application.
- Use a continuous integration and continuous delivery (CI/CD) pipeline to automate the deployment of your application. A CI/CD pipeline can help you to ensure that your application is always up-to-date and available.


---

Original Source: https://www.mindstick.com/forum/159690/how-to-create-a-new-dot-net-core-api

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
