English | 简体中文
This is a dotnet-cli
based template for creating Web projects. It can also be used to generate CRUD items.
Documents references for
dotnet-cli
templates
Official tutorial
Official wiki
Official blog
- locate into
FastWeb.sln
folder - run
dotnet new install ./
note: it may cause dotnet new fw
to fail if remove files inside
- make your changes
- run
dotnet new install ./ --force
- run
dotnet new fw -?
to get help - run
dotnet new fw -n MyProject
to create project
Option | Required | Default | Description |
---|---|---|---|
-? |
get help | ||
-n |
false |
Solution name, default is output folder name | |
-o |
false |
Output folder, default is folder command executed | |
-t |
false |
project |
Type of dotnet-cli creation, project to create project, item to create CRUD items |
-c |
false |
Core |
Project name without prefix for entities, DTOs and validators |
-s |
false |
Storage |
Project name without prefix for DbContext and entity type configuration |
-f |
false |
Infrastructure |
Project name without prefix for endpoints, services and mappers |
-w |
false |
Web |
Project name without prefix for startup and http files |
-r |
false |
false |
Whether to use RESTful API |
-e |
false |true |
Sample |
Entity name without 'Entity' suffix, required when -t item |
-pk |
false |
int |
Primary key type of entity (string |int |long |guid |object ) |
-pg |
false |
false |
Whether to use pagination for list query |
- locate into
FastWeb.sln
folder - run
dotnet new uninstall ./
This project is licensed under the MIT license.