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.

Version Downloads Last Updated
1.2.1 158 6/19/2025
1.2.0 153 6/19/2025
1.1.9 151 6/18/2025
1.1.8 177 9/18/2024
1.1.7 606 8/22/2024
1.1.6 628 8/22/2024
1.1.5 272 5/31/2024
1.1.4 872 5/9/2024
1.1.3 199 4/10/2024
1.1.2 284 4/8/2024