Today, I've created the ApiBoilerPlate.AspNetCore Nuget Package to enable installing the project template using .NET CLI.
How?
There are two ways to install the template:
- From Nuget with .NET CLI: ApiBoilerPlate.AspNetCore
- From VSIX Market Place with Visual Studio: ApiBoilerPlate.AspNetCore
Install the Template from .NET CLI
- Install the latest .NET Core SDK.
- Run
dotnet new -i apiboilerplate.aspnetcore
. This will install the template in your machine. - Run
dotnet new apiboilerplate --name "MyAPI"; -o samples
. This will generate the project template namedMyAPI
within thesamples
directory.
Once installed, you should see this output below:
The template "ASP.NET Core API Template for .NET Core 3.x" was created successfully.
Install the Template from Visual Studio 2019
If you prefer, you can also install the project template in Visual Studio using the Visual Studio Marketplace extension here: ApiBoilerPlate.AspNetCore
Walkthrough
Check out the my previous post for more information: ApiBoilerPlate: A Project Template for Building ASP.NET Core APIs