1 Star 0 Fork 112

hfylover/sharding-core

forked from 薛家明/sharding-core 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
nuget-publish.bat 714 Bytes
一键复制 编辑 原始数据 按行查看 历史
薛家明 提交于 2022-11-18 09:55 +08:00 . 修复
:start
::定义版本
set SHARDINGCORE7=7.0.0.5
set SHARDINGCORE2_6=6.8.0.9
::删除所有bin与obj下的文件
@echo off
echo input nuget api key
set /p apiKey=
IF "apiKey"=="" (
ECHO No NuGet API key provided &goto :start
)
set nowpath=%cd%
cd \
cd %nowpath%
::delete specify file(*.pdb,*.vshost.*)
for /r %nowpath% %%i in (*.pdb,*.vshost.*) do (del %%i && echo delete %%i)
::delete specify folder(obj,bin)
for /r %nowpath% %%i in (obj,bin) do (IF EXIST %%i (RD /s /q %%i && echo delete %%i))
echo clear complete
::构建
dotnet build -c Release
::publishing....
for /r %nowpath% %%i in (*.nupkg) do (dotnet nuget push %%i -k %apiKey% --source https://api.nuget.org/v3/index.json)
echo complete
pause
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/hfylover/sharding-core.git
git@gitee.com:hfylover/sharding-core.git
hfylover
sharding-core
sharding-core
main

搜索帮助