1 Star 0 Fork 0

gxlqssjf/orleans

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.ps1 1.85 KB
一键复制 编辑 原始数据 按行查看 历史
# --------------------
# Orleans build script
# --------------------
. ./common.ps1
$scriptDir = Split-Path $script:MyInvocation.MyCommand.Path
$solution = Join-Path $scriptDir "Orleans.sln"
# Define build flags & config
if ($null -eq $env:BUILD_FLAGS)
{
$env:BUILD_FLAGS = "/m /v:m"
}
if ($null -eq $env:BuildConfiguration)
{
$env:BuildConfiguration = "Debug"
}
# Clear the 'Platform' env variable for this session, as it's a per-project setting within the build, and
# misleading value (such as 'MCD' in HP PCs) may lead to build breakage (issue: #69).
$Platform = $null
# Disable multilevel lookup https://github.com/dotnet/core-setup/blob/main/Documentation/design-docs/multilevel-sharedfx-lookup.md
$DOTNET_MULTILEVEL_LOOKUP = 0
# Set DateTime suffix for debug builds
if ($env:BuildConfiguration -eq "Debug")
{
$dateSuffix = Get-Date -Format "yyyyMMddHHmm"
$AdditionalConfigurationProperties=" /p:VersionDateSuffix=$dateSuffix"
}
Write-Output "===== Building $solution ====="
Install-Dotnet
if ($args[0] -ne "Pack")
{
Write-Output "Build $env:BuildConfiguration =============================="
Invoke-Dotnet -Command "restore" -Arguments "$env:BUILD_FLAGS /bl:${env:BuildConfiguration}-Restore.binlog /p:Configuration=${env:BuildConfiguration}${AdditionalConfigurationProperties} `"$solution`""
Invoke-Dotnet -Command "build" -Arguments "$env:BUILD_FLAGS /bl:${env:BuildConfiguration}-Build.binlog /p:Configuration=${env:BuildConfiguration}${AdditionalConfigurationProperties} `"$solution`""
}
Write-Output "Package $env:BuildConfiguration ============================"
Invoke-Dotnet -Command "pack" -Arguments "--no-build --no-restore $BUILD_FLAGS /bl:${env:BuildConfiguration}-Pack.binlog /p:Configuration=${env:BuildConfiguration}${AdditionalConfigurationProperties} `"$solution`""
Write-Output "===== Build succeeded for $solution ====="
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/gxlqssjf/orleans.git
git@gitee.com:gxlqssjf/orleans.git
gxlqssjf
orleans
orleans
3.x

搜索帮助