使用 "dotnet new" 开始一个新的 ASP.Net 核心 2.0 项目

Starting a New ASP.Net Core 2.0 Project with Identity using "dotnet new"

你如何开始一个新的 ASP.Net 核心 2.0 项目与身份?

"dotnet new mvc" 不包括帐户或管理 models/controllers/views。

dotnet new mvc --auth Individual 

参见tutorial

假设您想调用您的站点 seniordevops.com,您可能会:

dotnet new mvc -o SeniorDevops --auth Individual

通过初始 sqlite 迁移为您构建一个目录。我喜欢用 PostgreSQL 替换 sqlite 数据库并在此时重新运行迁移,您也可以通过在末尾添加以下内容来进入 SQL-server:-uld