博文(https://blog.zhuliang.ltd/back-end/custom-template-using-dotnetcore/)源码:模板项目demo src文件夹中除了 Templates文件夹以外的项目文件夹均为源项目。 Templates 文件夹中: Templates\Local:用于演示本地模板内容 Templates\Nuget:用于演示安装到 nuget server 上的模板内容