加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
pack.ps1 490 Bytes
一键复制 编辑 原始数据 按行查看 历史
wuwuwu 提交于 2022-05-27 18:34 . 增加 pack.ps1
# Rebuild all solutions
dotnet restore
$currentPath=Get-Location
# Create publish folder
$publishFolder="Publish"
if(!(Test-Path $publishFolder)){
mkdir $publishFolder
Write-Output "Create publish folder"
}
# Delete old packages
Write-Output "Delete old packages"
cd $publishFolder
del *.nupkg
cd ..
# Create nuget pack
$projectName="Rubyer"
$publishPath=Join-Path $currentPath $publishFolder
dotnet clean
dotnet pack -o $publishFolder -c Release
Write-Output "Publish success"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化