This is an opinionated .NET Core template for the dotnet new command.
-
Install the template from nuget.org
dotnet new -i PivotalServices.WebApiTemplate.CSharp
-
This should install a template with the shortname
pvtlwebapi
Templates Short Name Language Tags ---------------------------------------------------------------------------------------------------------------------------- PCF Ready .NET Core WebAPI pvtlwebapi [C#] PCF/WebAPI/Web
-
To generate a new project
dotnet new pvtlwebapi -n <NAME_OF_SOLUTION>
-
Make sure you have the compatible .NET Core SDK versions installed
Package Version 3.0.0 -> .NET Core SDK Version 3.1
-
Goto the folder and run either
build.bat
orbuild.sh
for the initial build.
- To package this template use the following command.
dotnet pack -p:PackageVersion=[version-number]