Template repository for a .NET Web Api project.
- Clone this Repository
- Install Project Template
- Create Project with
dotnet new
Clone or download this repository.
git clone https://github.com/ovation22/Aspire.ProjectTemplate.git
Then run the following command to install this project template:
dotnet new install ./Aspire.ProjectTemplate
You should now see the api-project
template installed successfully.
Run the following command to create the solution structure in a subfolder named Your.ProjectName
:
dotnet new api-project -o Your.ProjectName
Optionally, you may choose to included additional parameters to better fill out your new project:
dotnet new aspire-project -o Your.ProjectName
Included in the solution:
- .NET Aspire
- Blazor Web App
- .NET 9 Web Api