代码拉取完成,页面将自动刷新
# --------------------
# 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
$BuildProperties = "/p:Configuration=$env:BuildConfiguration";
# Set DateTime suffix for debug builds
if ($env:BuildConfiguration -eq "Debug")
{
$dateSuffix = Get-Date -Format "yyyyMMddHHmm"
$BuildProperties = $BuildProperties + " /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 ${BuildProperties} `"$solution`""
Invoke-Dotnet -Command "build" -Arguments "$env:BUILD_FLAGS /bl:${env:BuildConfiguration}-Build.binlog ${BuildProperties} `"$solution`""
}
Write-Output "Package $env:BuildConfiguration ============================"
Invoke-Dotnet -Command "pack" -Arguments "--no-build --no-restore $BUILD_FLAGS /bl:${env:BuildConfiguration}-Pack.binlog ${BuildProperties} `"$solution`""
Write-Output "===== Build succeeded for $solution ====="
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。