Skip to content

Commit b20e87c

Browse files
[main] Source code updates from dotnet/dotnet (#1660)
[main] Source code updates from dotnet/dotnet
1 parent 82c6767 commit b20e87c

7 files changed

Lines changed: 48 additions & 19 deletions

File tree

eng/Version.Details.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ This file should be imported by eng/Versions.props
66
<Project>
77
<PropertyGroup>
88
<!-- dotnet-dotnet dependencies -->
9-
<MicrosoftDotNetArcadeSdkPackageVersion>11.0.0-beta.26215.121</MicrosoftDotNetArcadeSdkPackageVersion>
10-
<SystemCommandLinePackageVersion>3.0.0-preview.4.26215.121</SystemCommandLinePackageVersion>
11-
<SystemIOHashingPackageVersion>11.0.0-preview.4.26215.121</SystemIOHashingPackageVersion>
9+
<MicrosoftDotNetArcadeSdkPackageVersion>11.0.0-beta.26226.111</MicrosoftDotNetArcadeSdkPackageVersion>
10+
<SystemCommandLinePackageVersion>3.0.0-preview.5.26226.111</SystemCommandLinePackageVersion>
11+
<SystemIOHashingPackageVersion>11.0.0-preview.5.26226.111</SystemIOHashingPackageVersion>
1212
</PropertyGroup>
1313
<!--Property group for alternate package version names-->
1414
<PropertyGroup>

eng/Version.Details.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Dependencies>
3-
<Source Uri="https://github.com/dotnet/dotnet" Mapping="sourcelink" Sha="ab01524bbb2ef1eea0ffaef161b3ef5686e8f256" BarId="310648" />
3+
<Source Uri="https://github.com/dotnet/dotnet" Mapping="sourcelink" Sha="2e6efe3a93c7a685d76951a7bfd91c520dc7b333" BarId="311960" />
44
<ProductDependencies>
5-
<Dependency Name="System.CommandLine" Version="3.0.0-preview.4.26215.121">
5+
<Dependency Name="System.CommandLine" Version="3.0.0-preview.5.26226.111">
66
<Uri>https://github.com/dotnet/dotnet</Uri>
7-
<Sha>ab01524bbb2ef1eea0ffaef161b3ef5686e8f256</Sha>
7+
<Sha>2e6efe3a93c7a685d76951a7bfd91c520dc7b333</Sha>
88
</Dependency>
9-
<Dependency Name="System.IO.Hashing" Version="11.0.0-preview.4.26215.121">
9+
<Dependency Name="System.IO.Hashing" Version="11.0.0-preview.5.26226.111">
1010
<Uri>https://github.com/dotnet/dotnet</Uri>
11-
<Sha>ab01524bbb2ef1eea0ffaef161b3ef5686e8f256</Sha>
11+
<Sha>2e6efe3a93c7a685d76951a7bfd91c520dc7b333</Sha>
1212
</Dependency>
1313
</ProductDependencies>
1414
<ToolsetDependencies>
15-
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="11.0.0-beta.26215.121">
15+
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="11.0.0-beta.26226.111">
1616
<Uri>https://github.com/dotnet/dotnet</Uri>
17-
<Sha>ab01524bbb2ef1eea0ffaef161b3ef5686e8f256</Sha>
17+
<Sha>2e6efe3a93c7a685d76951a7bfd91c520dc7b333</Sha>
1818
</Dependency>
1919
</ToolsetDependencies>
2020
</Dependencies>

eng/Versions.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<PropertyGroup>
66
<VersionPrefix>11.0.100</VersionPrefix>
77
<PreReleaseVersionLabel>preview</PreReleaseVersionLabel>
8-
<PreReleaseVersionIteration>4</PreReleaseVersionIteration>
8+
<PreReleaseVersionIteration>5</PreReleaseVersionIteration>
99
<!-- Allowed values: '', 'prerelease', 'release'. Set to 'release' when stabilizing. -->
1010
<DotNetFinalVersionKind></DotNetFinalVersionKind>
1111

eng/common/core-templates/post-build/post-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ stages:
225225
displayName: Validate
226226
inputs:
227227
filePath: eng\common\sdk-task.ps1
228-
arguments: -task SigningValidation -restore
228+
arguments: -task SigningValidation -restore -msbuildEngine dotnet
229229
/p:PackageBasePath='$(Build.ArtifactStagingDirectory)/PackageArtifacts'
230230
/p:SignCheckExclusionsFile='$(System.DefaultWorkingDirectory)/eng/SignCheckExclusionsFile.txt'
231231
${{ parameters.signingValidationAdditionalParameters }}

eng/common/tools.ps1

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,11 @@ function InitializeDotNetCli([bool]$install, [bool]$createSdkLocationFile) {
185185
if ((-not $globalJsonHasRuntimes) -and (-not [string]::IsNullOrEmpty($env:DOTNET_INSTALL_DIR)) -and (Test-Path(Join-Path $env:DOTNET_INSTALL_DIR "sdk\$dotnetSdkVersion"))) {
186186
$dotnetRoot = $env:DOTNET_INSTALL_DIR
187187
} else {
188-
$dotnetRoot = Join-Path $RepoRoot '.dotnet'
188+
if (-not [string]::IsNullOrEmpty($env:DOTNET_GLOBAL_INSTALL_DIR)) {
189+
$dotnetRoot = $env:DOTNET_GLOBAL_INSTALL_DIR
190+
} else {
191+
$dotnetRoot = Join-Path $RepoRoot '.dotnet'
192+
}
189193

190194
if (-not (Test-Path(Join-Path $dotnetRoot "sdk\$dotnetSdkVersion"))) {
191195
if ($install) {
@@ -677,9 +681,19 @@ function InitializeToolset() {
677681
}
678682

679683
$downloadArgs = @("package", "download", "Microsoft.DotNet.Arcade.Sdk@$toolsetVersion", "--verbosity", "minimal", "--prerelease", "--output", "$nugetCache")
680-
if ($env:NUGET_CONFIG) {
684+
$nugetConfig = $env:NUGET_CONFIG
685+
if (-not $nugetConfig) {
686+
# Search for any variation of nuget.config in the RepoRoot
687+
$configFile = Get-ChildItem -Path $RepoRoot -File | Where-Object { $_.Name -ieq "nuget.config" } | Select-Object -First 1
688+
689+
if ($configFile) {
690+
$nugetConfig = $configFile.FullName
691+
}
692+
}
693+
694+
if ($nugetConfig) {
681695
$downloadArgs += "--configfile"
682-
$downloadArgs += $env:NUGET_CONFIG
696+
$downloadArgs += $nugetConfig
683697
}
684698
DotNet @downloadArgs
685699

eng/common/tools.sh

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,11 @@ function InitializeDotNetCli {
148148
if [[ $global_json_has_runtimes == false && -n "${DOTNET_INSTALL_DIR:-}" && -d "$DOTNET_INSTALL_DIR/sdk/$dotnet_sdk_version" ]]; then
149149
dotnet_root="$DOTNET_INSTALL_DIR"
150150
else
151-
dotnet_root="${repo_root}.dotnet"
151+
if [[ -n "${DOTNET_GLOBAL_INSTALL_DIR:-}" ]]; then
152+
dotnet_root="$DOTNET_GLOBAL_INSTALL_DIR"
153+
else
154+
dotnet_root="${repo_root}.dotnet"
155+
fi
152156

153157
export DOTNET_INSTALL_DIR="$dotnet_root"
154158

@@ -427,8 +431,19 @@ function InitializeToolset {
427431
fi
428432

429433
local download_args=("package" "download" "Microsoft.DotNet.Arcade.Sdk@$toolset_version" "--verbosity" "minimal" "--prerelease" "--output" "$_GetNuGetPackageCachePath")
430-
if [[ -n "${NUGET_CONFIG:-}" ]]; then
431-
download_args+=("--configfile" "$NUGET_CONFIG")
434+
local nuget_config="${NUGET_CONFIG:-}"
435+
if [[ -z "$nuget_config" ]]; then
436+
# Search for any variation of nuget.config in the RepoRoot
437+
local found_config
438+
found_config=$(find "$repo_root" -maxdepth 1 -type f -iname "nuget.config" -print -quit)
439+
440+
if [[ -n "$found_config" ]]; then
441+
nuget_config="$found_config"
442+
fi
443+
fi
444+
445+
if [[ -n "$nuget_config" ]]; then
446+
download_args+=("--configfile" "$nuget_config")
432447
fi
433448
DotNet "${download_args[@]}"
434449

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"dotnet": "11.0.100-preview.4.26210.111"
1414
},
1515
"msbuild-sdks": {
16-
"Microsoft.DotNet.Arcade.Sdk": "11.0.0-beta.26215.121",
16+
"Microsoft.DotNet.Arcade.Sdk": "11.0.0-beta.26226.111",
1717
"Microsoft.Build.NoTargets": "3.7.0"
1818
}
1919
}

0 commit comments

Comments
 (0)