Skip to content

[feature/10.0] Update dependencies from dotnet/dotnet #8472

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 24 additions & 24 deletions eng/Version.Details.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Dependencies>
<ProductDependencies>
<Dependency Name="Microsoft.AspNetCore.App.Runtime.win-x64" Version="10.0.0-rc.1.25377.103">
<Dependency Name="Microsoft.AspNetCore.App.Runtime.win-x64" Version="10.0.0-rc.1.25409.103">
<Uri>https://github.com/dotnet/dotnet</Uri>
<Sha>6a953e76162f3f079405f80e28664fa51b136740</Sha>
<Sha>e9f665e52848a3615736c099e5631af531b66a5c</Sha>
</Dependency>
<Dependency Name="Microsoft.Diagnostics.Monitoring" Version="9.0.0-preview.25381.1">
<Uri>https://github.com/dotnet/diagnostics</Uri>
Expand All @@ -12,55 +12,55 @@
<Uri>https://github.com/dotnet/diagnostics</Uri>
<Sha>058c2fef083bc427b23e74752acaf3b436fcddda</Sha>
</Dependency>
<Dependency Name="System.CommandLine" Version="2.0.0-rc.1.25377.103">
<Dependency Name="System.CommandLine" Version="2.0.0-rc.1.25409.103">
<Uri>https://github.com/dotnet/dotnet</Uri>
<Sha>6a953e76162f3f079405f80e28664fa51b136740</Sha>
<Sha>e9f665e52848a3615736c099e5631af531b66a5c</Sha>
</Dependency>
</ProductDependencies>
<ToolsetDependencies>
<Dependency Name="Microsoft.CodeAnalysis.NetAnalyzers" Version="10.0.0-preview.25377.103">
<Dependency Name="Microsoft.CodeAnalysis.NetAnalyzers" Version="10.0.0-preview.25409.103">
<Uri>https://github.com/dotnet/dotnet</Uri>
<Sha>6a953e76162f3f079405f80e28664fa51b136740</Sha>
<Sha>e9f665e52848a3615736c099e5631af531b66a5c</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="10.0.0-beta.25377.103">
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="10.0.0-beta.25409.103">
<Uri>https://github.com/dotnet/dotnet</Uri>
<Sha>6a953e76162f3f079405f80e28664fa51b136740</Sha>
<Sha>e9f665e52848a3615736c099e5631af531b66a5c</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.Build.Tasks.Archives" Version="10.0.0-beta.25377.103">
<Dependency Name="Microsoft.DotNet.Build.Tasks.Archives" Version="10.0.0-beta.25409.103">
<Uri>https://github.com/dotnet/dotnet</Uri>
<Sha>6a953e76162f3f079405f80e28664fa51b136740</Sha>
<Sha>e9f665e52848a3615736c099e5631af531b66a5c</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.CodeAnalysis" Version="10.0.0-beta.25377.103">
<Dependency Name="Microsoft.DotNet.CodeAnalysis" Version="10.0.0-beta.25409.103">
<Uri>https://github.com/dotnet/dotnet</Uri>
<Sha>6a953e76162f3f079405f80e28664fa51b136740</Sha>
<Sha>e9f665e52848a3615736c099e5631af531b66a5c</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="10.0.0-beta.25377.103">
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="10.0.0-beta.25409.103">
<Uri>https://github.com/dotnet/dotnet</Uri>
<Sha>6a953e76162f3f079405f80e28664fa51b136740</Sha>
<Sha>e9f665e52848a3615736c099e5631af531b66a5c</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.XUnitExtensions" Version="10.0.0-beta.25377.103">
<Dependency Name="Microsoft.DotNet.XUnitExtensions" Version="10.0.0-beta.25409.103">
<Uri>https://github.com/dotnet/dotnet</Uri>
<Sha>6a953e76162f3f079405f80e28664fa51b136740</Sha>
<Sha>e9f665e52848a3615736c099e5631af531b66a5c</Sha>
</Dependency>
<Dependency Name="Microsoft.FileFormats" Version="1.0.638101">
<Uri>https://github.com/dotnet/diagnostics</Uri>
<Sha>058c2fef083bc427b23e74752acaf3b436fcddda</Sha>
</Dependency>
<Dependency Name="Microsoft.NETCore.App.Runtime.win-x64" Version="10.0.0-preview.7.25377.103">
<Dependency Name="Microsoft.NETCore.App.Runtime.win-x64" Version="10.0.0-rc.1.25409.103">
<Uri>https://github.com/dotnet/dotnet</Uri>
<Sha>6a953e76162f3f079405f80e28664fa51b136740</Sha>
<Sha>e9f665e52848a3615736c099e5631af531b66a5c</Sha>
</Dependency>
<Dependency Name="VS.Redist.Common.AspNetCore.SharedFramework.x64.10.0" Version="10.0.0-rc.1.25377.103">
<Dependency Name="VS.Redist.Common.AspNetCore.SharedFramework.x64.10.0" Version="10.0.0-rc.1.25409.103">
<Uri>https://github.com/dotnet/dotnet</Uri>
<Sha>6a953e76162f3f079405f80e28664fa51b136740</Sha>
<Sha>e9f665e52848a3615736c099e5631af531b66a5c</Sha>
</Dependency>
<Dependency Name="VS.Redist.Common.NetCore.SdkPlaceholder.x64.10.0" Version="10.0.100-preview.7.25377.103">
<Dependency Name="VS.Redist.Common.NetCore.SdkPlaceholder.x64.10.0" Version="10.0.100-rc.1.25409.103">
<Uri>https://github.com/dotnet/dotnet</Uri>
<Sha>6a953e76162f3f079405f80e28664fa51b136740</Sha>
<Sha>e9f665e52848a3615736c099e5631af531b66a5c</Sha>
</Dependency>
<Dependency Name="VS.Redist.Common.NetCore.SharedFramework.x64.10.0" Version="10.0.0-preview.7.25377.103">
<Dependency Name="VS.Redist.Common.NetCore.SharedFramework.x64.10.0" Version="10.0.0-rc.1.25409.103">
<Uri>https://github.com/dotnet/dotnet</Uri>
<Sha>6a953e76162f3f079405f80e28664fa51b136740</Sha>
<Sha>e9f665e52848a3615736c099e5631af531b66a5c</Sha>
</Dependency>
</ToolsetDependencies>
</Dependencies>
20 changes: 10 additions & 10 deletions eng/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,16 @@
<MicrosoftDiagnosticsMonitoringEventPipeVersion>9.0.0-preview.25381.1</MicrosoftDiagnosticsMonitoringEventPipeVersion>
<MicrosoftFileFormatsVersion>1.0.638101</MicrosoftFileFormatsVersion>
<!-- dotnet/dotnet references -->
<MicrosoftAspNetCoreAppRuntimewinx64Version>10.0.0-rc.1.25377.103</MicrosoftAspNetCoreAppRuntimewinx64Version>
<MicrosoftCodeAnalysisNetAnalyzersVersion>10.0.0-preview.25377.103</MicrosoftCodeAnalysisNetAnalyzersVersion>
<MicrosoftDotNetBuildTasksArchivesVersion>10.0.0-beta.25377.103</MicrosoftDotNetBuildTasksArchivesVersion>
<MicrosoftDotNetCodeAnalysisVersion>10.0.0-beta.25377.103</MicrosoftDotNetCodeAnalysisVersion>
<MicrosoftDotNetXUnitExtensionsVersion>10.0.0-beta.25377.103</MicrosoftDotNetXUnitExtensionsVersion>
<MicrosoftNETCoreAppRuntimewinx64Version>10.0.0-preview.7.25377.103</MicrosoftNETCoreAppRuntimewinx64Version>
<SystemCommandLineVersion>2.0.0-rc.1.25377.103</SystemCommandLineVersion>
<VSRedistCommonAspNetCoreSharedFrameworkx64100Version>10.0.0-rc.1.25377.103</VSRedistCommonAspNetCoreSharedFrameworkx64100Version>
<VSRedistCommonNetCoreSdkPlaceholderx64100Version>10.0.100-preview.7.25377.103</VSRedistCommonNetCoreSdkPlaceholderx64100Version>
<VSRedistCommonNetCoreSharedFrameworkx64100Version>10.0.0-preview.7.25377.103</VSRedistCommonNetCoreSharedFrameworkx64100Version>
<MicrosoftAspNetCoreAppRuntimewinx64Version>10.0.0-rc.1.25409.103</MicrosoftAspNetCoreAppRuntimewinx64Version>
<MicrosoftCodeAnalysisNetAnalyzersVersion>10.0.0-preview.25409.103</MicrosoftCodeAnalysisNetAnalyzersVersion>
<MicrosoftDotNetBuildTasksArchivesVersion>10.0.0-beta.25409.103</MicrosoftDotNetBuildTasksArchivesVersion>
<MicrosoftDotNetCodeAnalysisVersion>10.0.0-beta.25409.103</MicrosoftDotNetCodeAnalysisVersion>
<MicrosoftDotNetXUnitExtensionsVersion>10.0.0-beta.25409.103</MicrosoftDotNetXUnitExtensionsVersion>
<MicrosoftNETCoreAppRuntimewinx64Version>10.0.0-rc.1.25409.103</MicrosoftNETCoreAppRuntimewinx64Version>
<SystemCommandLineVersion>2.0.0-rc.1.25409.103</SystemCommandLineVersion>
<VSRedistCommonAspNetCoreSharedFrameworkx64100Version>10.0.0-rc.1.25409.103</VSRedistCommonAspNetCoreSharedFrameworkx64100Version>
<VSRedistCommonNetCoreSdkPlaceholderx64100Version>10.0.100-rc.1.25409.103</VSRedistCommonNetCoreSdkPlaceholderx64100Version>
<VSRedistCommonNetCoreSharedFrameworkx64100Version>10.0.0-rc.1.25409.103</VSRedistCommonNetCoreSharedFrameworkx64100Version>
</PropertyGroup>
<PropertyGroup Label="Runtime Versions">
<MicrosoftAspNetCoreApp80Version>$(MicrosoftNETCoreApp80Version)</MicrosoftAspNetCoreApp80Version>
Expand Down
30 changes: 14 additions & 16 deletions eng/common/core-templates/job/onelocbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ parameters:

# Optional: A defined YAML pool - https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=vsts&tabs=schema#pool
pool: ''

CeapexPat: $(dn-bot-ceapex-package-r) # PAT for the loc AzDO instance https://dev.azure.com/ceapex
GithubPat: $(BotAccount-dotnet-bot-repo-PAT)

Expand All @@ -27,7 +27,7 @@ parameters:
is1ESPipeline: ''
jobs:
- job: OneLocBuild${{ parameters.JobNameSuffix }}

dependsOn: ${{ parameters.dependsOn }}

displayName: OneLocBuild${{ parameters.JobNameSuffix }}
Expand Down Expand Up @@ -99,22 +99,20 @@ jobs:
mirrorBranch: ${{ parameters.MirrorBranch }}
condition: ${{ parameters.condition }}

- template: /eng/common/core-templates/steps/publish-build-artifacts.yml
parameters:
is1ESPipeline: ${{ parameters.is1ESPipeline }}
args:
displayName: Publish Localization Files
pathToPublish: '$(Build.ArtifactStagingDirectory)/loc'
publishLocation: Container
artifactName: Loc
condition: ${{ parameters.condition }}
# Copy the locProject.json to the root of the Loc directory, then publish a pipeline artifact
- task: CopyFiles@2
displayName: Copy LocProject.json
inputs:
SourceFolder: '$(Build.SourcesDirectory)/eng/Localize/'
Contents: 'LocProject.json'
TargetFolder: '$(Build.ArtifactStagingDirectory)/loc'
condition: ${{ parameters.condition }}

- template: /eng/common/core-templates/steps/publish-build-artifacts.yml
- template: /eng/common/core-templates/steps/publish-pipeline-artifacts.yml
parameters:
is1ESPipeline: ${{ parameters.is1ESPipeline }}
args:
displayName: Publish LocProject.json
pathToPublish: '$(Build.SourcesDirectory)/eng/Localize/'
publishLocation: Container
artifactName: Loc
targetPath: '$(Build.ArtifactStagingDirectory)/loc'
artifactName: 'Loc'
displayName: 'Publish Localization Files'
condition: ${{ parameters.condition }}
13 changes: 13 additions & 0 deletions eng/common/tools.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,20 @@ function Retry($downloadBlock, $maxRetries = 5) {

function GetDotNetInstallScript([string] $dotnetRoot) {
$installScript = Join-Path $dotnetRoot 'dotnet-install.ps1'
$shouldDownload = $false

if (!(Test-Path $installScript)) {
$shouldDownload = $true
} else {
# Check if the script is older than 30 days
$fileAge = (Get-Date) - (Get-Item $installScript).LastWriteTime
if ($fileAge.Days -gt 30) {
Write-Host "Existing install script is too old, re-downloading..."
$shouldDownload = $true
}
}

if ($shouldDownload) {
Create-Directory $dotnetRoot
$ProgressPreference = 'SilentlyContinue' # Don't display the console progress UI - it's a huge perf hit
$uri = "https://builds.dotnet.microsoft.com/dotnet/scripts/$dotnetInstallScriptVersion/dotnet-install.ps1"
Expand Down
24 changes: 24 additions & 0 deletions eng/common/tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,29 @@ function GetDotNetInstallScript {
local root=$1
local install_script="$root/dotnet-install.sh"
local install_script_url="https://builds.dotnet.microsoft.com/dotnet/scripts/$dotnetInstallScriptVersion/dotnet-install.sh"
local timestamp_file="$root/.dotnet-install.timestamp"
local should_download=false

if [[ ! -a "$install_script" ]]; then
should_download=true
elif [[ -f "$timestamp_file" ]]; then
# Check if the script is older than 30 days using timestamp file
local download_time=$(cat "$timestamp_file" 2>/dev/null || echo "0")
local current_time=$(date +%s)
local age_seconds=$((current_time - download_time))

# 30 days = 30 * 24 * 60 * 60 = 2592000 seconds
if [[ $age_seconds -gt 2592000 ]]; then
echo "Existing install script is too old, re-downloading..."
should_download=true
fi
else
# No timestamp file exists, assume script is old and re-download
echo "No timestamp found for existing install script, re-downloading..."
should_download=true
fi

if [[ "$should_download" == true ]]; then
mkdir -p "$root"

echo "Downloading '$install_script_url'"
Expand All @@ -328,6 +349,9 @@ function GetDotNetInstallScript {
ExitWithExitCode $exit_code
}
fi

# Create timestamp file to track download time in seconds from epoch
date +%s > "$timestamp_file"
fi
# return value
_GetDotNetInstallScript="$install_script"
Expand Down
6 changes: 3 additions & 3 deletions global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"tools": {
"dotnet": "10.0.100-preview.7.25322.101",
"dotnet": "10.0.100-preview.7.25372.107",
"runtimes": {
"aspnetcore": [
"$(MicrosoftAspNetCoreApp80Version)",
Expand All @@ -26,7 +26,7 @@
},
"msbuild-sdks": {
"Microsoft.Build.NoTargets": "3.7.0",
"Microsoft.DotNet.Arcade.Sdk": "10.0.0-beta.25377.103",
"Microsoft.DotNet.Helix.Sdk": "10.0.0-beta.25377.103"
"Microsoft.DotNet.Arcade.Sdk": "10.0.0-beta.25409.103",
"Microsoft.DotNet.Helix.Sdk": "10.0.0-beta.25409.103"
}
}
Loading