CentreX.Templates
1.2.1
dotnet new install CentreX.Templates::1.2.1
This package contains a .NET Template Package you can call from the shell/command line.
CentreX.Templates
CentreX .Net templates
囊括了CentreX的所有模板
发布
1.将当前所有 git 提交
git add .
git commit -m "xxx"
git push
2.打 Version tag
获取你最新commit的hash值
git log --oneline
q 退出
打Tag
git tag -a [Vx.x.x] [hash]
# 譬如说
git tag -a V1.0.0 3d9e8b3
3.发布
.\publish.ps1
4.发布临时版本到本地nuget源
# 添加本地nuget源(如果添加过,此步骤可跳过)
dotnet nuget add source -n snapshots "C:\\.nuget\snapshots"
# 执行脚本
./snapshot.ps1
本地安装
dotnet new -i [path]
# 譬如说打包出的文件在C://CentreX.Templates.1.0.0.nupkg
dotnet new -i "C://CentreX.Templates.1.0.0.nupkg"
从nuget源安装
dotnet new -i CentreX.Templates
使用
获取你想要安装的模板的简称
dotnet new --list
通过模板创建新项目
dotnet new [TemplateShortName] -n [ProjectName] -o [FolderName]
# 譬如说项目名为Baizhichuan
dotnet new EmptyBackend -n Baizhichuan.Backend -o Baizhichuan.Backend
当前CentreX可用模板详见:
模板列表
- EmptyBackend 完全空白的模板列表,仅提供基础的工具类、结构与配置,删除了所有的业务代码,适用于快速搭建新项目
- WmsBackend 标准仓库管理系统模板,包括出库、入库、盘点等基础功能
-
net6.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.