diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml index 726d0337a..405c14796 100644 --- a/eng/Version.Details.xml +++ b/eng/Version.Details.xml @@ -3,17 +3,17 @@ - + https://github.com/dotnet/arcade - 1f7eece09d5c6fc2a1319d04f6ae4b7d18455e2d + a08169b890573cfd7f949ea9062c86a4db1aab1b - + https://github.com/dotnet/arcade - 1f7eece09d5c6fc2a1319d04f6ae4b7d18455e2d + a08169b890573cfd7f949ea9062c86a4db1aab1b - + https://github.com/dotnet/arcade - 1f7eece09d5c6fc2a1319d04f6ae4b7d18455e2d + a08169b890573cfd7f949ea9062c86a4db1aab1b diff --git a/eng/Versions.props b/eng/Versions.props index 93077dc8e..55a39b54c 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -15,7 +15,7 @@ 8.0.0 6.0.36 0.2.0-alpha.24576.2 - 11.0.0-beta.26204.1 + 11.0.0-beta.26211.1 6.0.0 4.18.4 4.9.4 diff --git a/eng/common/tools.ps1 b/eng/common/tools.ps1 index b67879917..e28db6c7c 100644 --- a/eng/common/tools.ps1 +++ b/eng/common/tools.ps1 @@ -185,7 +185,11 @@ function InitializeDotNetCli([bool]$install, [bool]$createSdkLocationFile) { if ((-not $globalJsonHasRuntimes) -and (-not [string]::IsNullOrEmpty($env:DOTNET_INSTALL_DIR)) -and (Test-Path(Join-Path $env:DOTNET_INSTALL_DIR "sdk\$dotnetSdkVersion"))) { $dotnetRoot = $env:DOTNET_INSTALL_DIR } else { - $dotnetRoot = Join-Path $RepoRoot '.dotnet' + if (-not [string]::IsNullOrEmpty($env:DOTNET_GLOBAL_INSTALL_DIR)) { + $dotnetRoot = $env:DOTNET_GLOBAL_INSTALL_DIR + } else { + $dotnetRoot = Join-Path $RepoRoot '.dotnet' + } if (-not (Test-Path(Join-Path $dotnetRoot "sdk\$dotnetSdkVersion"))) { if ($install) { @@ -773,7 +777,7 @@ function MSBuild-Core() { $cmdArgs += ' /p:TreatWarningsAsErrors=false' } - if ($warnNotAsError) { + if ($warnAsError -and $warnNotAsError) { $cmdArgs += " /warnnotaserror:$warnNotAsError /p:AdditionalWarningsNotAsErrors=$warnNotAsError" } diff --git a/eng/common/tools.sh b/eng/common/tools.sh index a6e0ed594..1e37fd95b 100755 --- a/eng/common/tools.sh +++ b/eng/common/tools.sh @@ -148,7 +148,11 @@ function InitializeDotNetCli { if [[ $global_json_has_runtimes == false && -n "${DOTNET_INSTALL_DIR:-}" && -d "$DOTNET_INSTALL_DIR/sdk/$dotnet_sdk_version" ]]; then dotnet_root="$DOTNET_INSTALL_DIR" else - dotnet_root="${repo_root}.dotnet" + if [[ -n "${DOTNET_GLOBAL_INSTALL_DIR:-}" ]]; then + dotnet_root="$DOTNET_GLOBAL_INSTALL_DIR" + else + dotnet_root="${repo_root}.dotnet" + fi export DOTNET_INSTALL_DIR="$dotnet_root" @@ -534,7 +538,7 @@ function MSBuild-Core { fi local warnnotaserror_switch="" - if [[ -n "$warn_not_as_error" ]]; then + if [[ -n "$warn_not_as_error" && "$warn_as_error" == true ]]; then warnnotaserror_switch="/warnnotaserror:$warn_not_as_error /p:AdditionalWarningsNotAsErrors=$warn_not_as_error" fi diff --git a/global.json b/global.json index 67669b915..f6ede4e7a 100644 --- a/global.json +++ b/global.json @@ -19,7 +19,7 @@ "runner": "Microsoft.Testing.Platform" }, "msbuild-sdks": { - "Microsoft.DotNet.Arcade.Sdk": "11.0.0-beta.26204.1", - "Microsoft.DotNet.Helix.Sdk": "11.0.0-beta.26204.1" + "Microsoft.DotNet.Arcade.Sdk": "11.0.0-beta.26211.1", + "Microsoft.DotNet.Helix.Sdk": "11.0.0-beta.26211.1" } }