1 Star 0 Fork 4.1K

马小帅/Furion

forked from Token/Furion 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
generate.ps1 1021 Bytes
一键复制 编辑 原始数据 按行查看 历史
百小僧 提交于 2022-06-18 20:00 +08:00 . 😁 优化 generate.cli 脚本代码
# 获取所有 Furion + EFCore 模板目录
$efcore_path = pwd;
$efcore_templates = Get-ChildItem -Directory $efcore_path -Exclude SqlSugarTemplates;
# 获取所有 Furion + SqlSugar 模板目录
cd .\SqlSugarTemplates;
$sqlsugar_path = pwd;
$sqlsugar_templates = Get-ChildItem -Directory $sqlsugar_path;
cd ..;
# 定义生成 Nupkg 包
function generate($path, $templates){
$dir = $path.Path;
Write-Warning "正在生成 [$dir] Nupkg 包......";
# 遍历所有模板
for ($i = 0; $i -le $templates.Length - 1; $i++){
$item = $templates[$i];
# 获取完整路径
$fullName = $item.FullName;
Write-Output "-----------------";
$fullName
Write-Output "-----------------";
# 生成 .nupkg 包
.\nuget.exe pack $fullName;
}
Write-Output "生成成功";
}
# 生成 EFCore Nupkg 包
generate -path $efcore_path -templates $efcore_templates
# 生成 SqlSugar Nupkg 包
generate -path $sqlsugar_path -templates $sqlsugar_templates
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/weikety/Furion.git
git@gitee.com:weikety/Furion.git
weikety
Furion
Furion
v4

搜索帮助

371d5123 14472233 46e8bd33 14472233