Skip to content

[main] Source code updates from dotnet/dotnet #49080

New issue

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

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

Already on GitHub? # to your account

Merged
merged 40 commits into from
Jun 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
6eedc45
[VMR] Codeflow 9ee9fa8-9ee9fa8
dotnet-maestro[bot] May 21, 2025
23f91eb
Merging main into darc-main-6a483e62-9a15-475d-a31b-7c7d1c96cb9f
dotnet-maestro[bot] May 21, 2025
849612e
Update dependencies from https://github.com/dotnet/dotnet build 268973
dotnet-maestro[bot] May 21, 2025
e45ca17
Merge branch 'main' into darc-main-6a483e62-9a15-475d-a31b-7c7d1c96cb9f
nagilson May 21, 2025
bc0c30b
[VMR] Codeflow d60c3fe-a4d6fdc
dotnet-maestro[bot] May 22, 2025
50d27a6
Update dependencies from https://github.com/dotnet/dotnet build 269082
dotnet-maestro[bot] May 22, 2025
75eb7c3
Merge branch 'main' into darc-main-6a483e62-9a15-475d-a31b-7c7d1c96cb9f
nagilson May 22, 2025
e6b71ce
[VMR] Codeflow 0e185be-0e185be
dotnet-maestro[bot] May 23, 2025
858e7a4
Update dependencies from https://github.com/dotnet/dotnet build 269352
dotnet-maestro[bot] May 23, 2025
d2f60f2
Merging main into darc-main-6a483e62-9a15-475d-a31b-7c7d1c96cb9f
dotnet-maestro[bot] May 24, 2025
0c40b71
Update dependencies from https://github.com/dotnet/dotnet build 269418
dotnet-maestro[bot] May 24, 2025
bde4a81
[VMR] Codeflow 3c80286-3c80286
dotnet-maestro[bot] May 25, 2025
059f3d3
Update dependencies from https://github.com/dotnet/dotnet build 269499
dotnet-maestro[bot] May 25, 2025
33e4f4b
[VMR] Codeflow d9960a9-d9960a9
dotnet-maestro[bot] May 27, 2025
15e09e2
Merging main into darc-main-6a483e62-9a15-475d-a31b-7c7d1c96cb9f
dotnet-maestro[bot] May 27, 2025
8430e15
Update dependencies from https://github.com/dotnet/dotnet build 269610
dotnet-maestro[bot] May 27, 2025
8500054
[VMR] Codeflow ddc320a-ddc320a
dotnet-maestro[bot] May 28, 2025
6de592d
Merging main into darc-main-6a483e62-9a15-475d-a31b-7c7d1c96cb9f
dotnet-maestro[bot] May 28, 2025
1e44069
Update dependencies from https://github.com/dotnet/dotnet build 269724
dotnet-maestro[bot] May 28, 2025
d5bc9e9
Fix code formatting calls (CA2241)
dsplaisted May 28, 2025
62b747b
[VMR] Codeflow 39c0328-39c0328
dotnet-maestro[bot] May 29, 2025
d2f2ebe
Merging main into darc-main-6a483e62-9a15-475d-a31b-7c7d1c96cb9f
dotnet-maestro[bot] May 29, 2025
dcf600c
Update dependencies from https://github.com/dotnet/dotnet build 269884
dotnet-maestro[bot] May 29, 2025
ce9aea3
Disable analyzer which is throwing NullReferenceException
dsplaisted May 30, 2025
8a9eb9a
[VMR] Codeflow 1dd8c27-1dd8c27
dotnet-maestro[bot] May 31, 2025
0d3497c
Merging main into darc-main-6a483e62-9a15-475d-a31b-7c7d1c96cb9f
dotnet-maestro[bot] May 31, 2025
b8562aa
Update dependencies from https://github.com/dotnet/dotnet build 270128
dotnet-maestro[bot] May 31, 2025
87fee80
Update dependencies from https://github.com/dotnet/dotnet build 270181
dotnet-maestro[bot] Jun 1, 2025
1e5be47
[VMR] Codeflow 7a7cb3e-7a7cb3e
dotnet-maestro[bot] Jun 2, 2025
561419e
Update dependencies from https://github.com/dotnet/dotnet build 270205
dotnet-maestro[bot] Jun 2, 2025
d59116c
Update dependencies from https://github.com/dotnet/dotnet build 270315
dotnet-maestro[bot] Jun 3, 2025
031bb47
Merge branch 'main' into darc-main-6a483e62-9a15-475d-a31b-7c7d1c96cb9f
dsplaisted Jun 3, 2025
34eaf3d
[VMR] Codeflow 462536d-462536d
dotnet-maestro[bot] Jun 4, 2025
fccaa58
Update dependencies from https://github.com/dotnet/dotnet build 270450
dotnet-maestro[bot] Jun 4, 2025
77d603a
[VMR] Codeflow 6d995d4-6d995d4
dotnet-maestro[bot] Jun 5, 2025
1507e46
Merging main into darc-main-6a483e62-9a15-475d-a31b-7c7d1c96cb9f
dotnet-maestro[bot] Jun 5, 2025
337d961
Update dependencies from https://github.com/dotnet/dotnet build 270603
dotnet-maestro[bot] Jun 5, 2025
13e8098
Merging main into darc-main-6a483e62-9a15-475d-a31b-7c7d1c96cb9f
dotnet-maestro[bot] Jun 6, 2025
1644476
Update dependencies from https://github.com/dotnet/dotnet build 270662
dotnet-maestro[bot] Jun 6, 2025
d96ec44
remove obsolete test for BlazorWebAssemblyStartupMemoryCache
pavelsavara Jun 6, 2025
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
454 changes: 227 additions & 227 deletions eng/Version.Details.xml

Large diffs are not rendered by default.

224 changes: 113 additions & 111 deletions eng/Versions.props

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion eng/common/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Param(
[switch] $publish,
[switch] $clean,
[switch][Alias('pb')]$productBuild,
[switch]$fromVMR,
[switch][Alias('bl')]$binaryLog,
[switch][Alias('nobl')]$excludeCIBinarylog,
[switch] $ci,
Expand Down Expand Up @@ -74,6 +75,7 @@ function Print-Usage() {
Write-Host " -nativeToolsOnMachine Sets the native tools on machine environment variable (indicating that the script should use native tools on machine)"
Write-Host " -nodeReuse <value> Sets nodereuse msbuild parameter ('true' or 'false')"
Write-Host " -buildCheck Sets /check msbuild parameter"
Write-Host " -fromVMR Set when building from within the VMR"
Write-Host ""

Write-Host "Command line arguments not listed above are passed thru to msbuild."
Expand Down Expand Up @@ -127,7 +129,8 @@ function Build {
/p:Deploy=$deploy `
/p:Test=$test `
/p:Pack=$pack `
/p:DotNetBuildRepo=$productBuild `
/p:DotNetBuild=$productBuild `
/p:DotNetBuildFromVMR=$fromVMR `
/p:IntegrationTest=$integrationTest `
/p:PerformanceTest=$performanceTest `
/p:Sign=$sign `
Expand Down
20 changes: 13 additions & 7 deletions eng/common/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ usage()
echo " --nodeReuse <value> Sets nodereuse msbuild parameter ('true' or 'false')"
echo " --warnAsError <value> Sets warnaserror msbuild parameter ('true' or 'false')"
echo " --buildCheck <value> Sets /check msbuild parameter"
echo " --fromVMR Set when building from within the VMR"
echo ""
echo "Command line arguments not listed above are passed thru to msbuild."
echo "Arguments can also be passed in with a single hyphen."
Expand All @@ -64,6 +65,7 @@ restore=false
build=false
source_build=false
product_build=false
from_vmr=false
rebuild=false
test=false
integration_test=false
Expand All @@ -89,7 +91,7 @@ verbosity='minimal'
runtime_source_feed=''
runtime_source_feed_key=''

properties=''
properties=()
while [[ $# > 0 ]]; do
opt="$(echo "${1/#--/-}" | tr "[:upper:]" "[:lower:]")"
case "$opt" in
Expand Down Expand Up @@ -129,19 +131,22 @@ while [[ $# > 0 ]]; do
-pack)
pack=true
;;
-sourcebuild|-sb)
-sourcebuild|-source-build|-sb)
build=true
source_build=true
product_build=true
restore=true
pack=true
;;
-productbuild|-pb)
-productbuild|-product-build|-pb)
build=true
product_build=true
restore=true
pack=true
;;
-fromvmr|-from-vmr)
from_vmr=true
;;
-test|-t)
test=true
;;
Expand Down Expand Up @@ -187,7 +192,7 @@ while [[ $# > 0 ]]; do
shift
;;
*)
properties="$properties $1"
properties+=("$1")
;;
esac

Expand Down Expand Up @@ -221,7 +226,7 @@ function Build {
InitializeCustomToolset

if [[ ! -z "$projects" ]]; then
properties="$properties /p:Projects=$projects"
properties+=("/p:Projects=$projects")
fi

local bl=""
Expand All @@ -241,8 +246,9 @@ function Build {
/p:RepoRoot="$repo_root" \
/p:Restore=$restore \
/p:Build=$build \
/p:DotNetBuildRepo=$product_build \
/p:DotNetBuild=$product_build \
/p:DotNetBuildSourceOnly=$source_build \
/p:DotNetBuildFromVMR=$from_vmr \
/p:Rebuild=$rebuild \
/p:Test=$test \
/p:Pack=$pack \
Expand All @@ -251,7 +257,7 @@ function Build {
/p:Sign=$sign \
/p:Publish=$publish \
/p:RestoreStaticGraphEnableBinaryLogger=$binary_log \
$properties
${properties[@]+"${properties[@]}"}

ExitWithExitCode 0
}
Expand Down
49 changes: 42 additions & 7 deletions eng/common/core-templates/job/publish-build-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ parameters:
# Optional: 🌤️ or not the build has assets it wants to publish to BAR
isAssetlessBuild: false

# Optional, publishing version
publishingVersion: 3

# Optional: A minimatch pattern for the asset manifests to publish to BAR
assetManifestsPattern: '*/manifests/**/*.xml'

jobs:
- job: Asset_Registry_Publish

Expand Down Expand Up @@ -77,13 +83,31 @@ jobs:
clean: true

- ${{ if eq(parameters.isAssetlessBuild, 'false') }}:
- task: DownloadPipelineArtifact@2
displayName: Download Asset Manifests
inputs:
artifactName: AssetManifests
targetPath: '$(Build.StagingDirectory)/AssetManifests'
condition: ${{ parameters.condition }}
continueOnError: ${{ parameters.continueOnError }}
- ${{ if eq(parameters.publishingVersion, 3) }}:
- task: DownloadPipelineArtifact@2
displayName: Download Asset Manifests
inputs:
artifactName: AssetManifests
targetPath: '$(Build.StagingDirectory)/AssetManifests'
condition: ${{ parameters.condition }}
continueOnError: ${{ parameters.continueOnError }}
- ${{ if eq(parameters.publishingVersion, 4) }}:
- task: DownloadPipelineArtifact@2
displayName: Download V4 asset manifests
inputs:
itemPattern: '*/manifests/**/*.xml'
targetPath: '$(Build.StagingDirectory)/AllAssetManifests'
condition: ${{ parameters.condition }}
continueOnError: ${{ parameters.continueOnError }}
- task: CopyFiles@2
displayName: Copy V4 asset manifests to AssetManifests
inputs:
SourceFolder: '$(Build.StagingDirectory)/AllAssetManifests'
Contents: ${{ parameters.assetManifestsPattern }}
TargetFolder: '$(Build.StagingDirectory)/AssetManifests'
flattenFolders: true
condition: ${{ parameters.condition }}
continueOnError: ${{ parameters.continueOnError }}

- task: NuGetAuthenticate@1

Expand Down Expand Up @@ -120,6 +144,17 @@ jobs:
Copy-Item -Path $symbolExclusionfile -Destination "$(Build.StagingDirectory)/ReleaseConfigs"
}

- ${{ if eq(parameters.publishingVersion, 4) }}:
- template: /eng/common/core-templates/steps/publish-pipeline-artifacts.yml
parameters:
is1ESPipeline: ${{ parameters.is1ESPipeline }}
args:
targetPath: '$(Build.ArtifactStagingDirectory)/MergedManifest.xml'
artifactName: AssetManifests
displayName: 'Publish Merged Manifest'
retryCountOnTaskFailure: 10 # for any logs being locked
sbomEnabled: false # we don't need SBOM for logs

- template: /eng/common/core-templates/steps/publish-build-artifacts.yml
parameters:
is1ESPipeline: ${{ parameters.is1ESPipeline }}
Expand Down
3 changes: 0 additions & 3 deletions eng/common/core-templates/post-build/post-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,6 @@ stages:
buildId: $(AzDOBuildId)
artifactName: PackageArtifacts
checkDownloadedFiles: true
itemPattern: |
**
!**/Microsoft.SourceBuild.Intermediate.*.nupkg

# This is necessary whenever we want to publish/restore to an AzDO private feed
# Since sdk-task.ps1 tries to restore packages we need to do this authentication here
Expand Down
35 changes: 0 additions & 35 deletions eng/common/core-templates/steps/install-microbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,38 +48,3 @@ steps:
eq(variables['_SignType'], 'real')
)
))

# Workaround for ESRP CLI on Linux - https://github.com/dotnet/source-build/issues/4964
- ${{ if eq(parameters.enableMicrobuildForMacAndLinux, 'true') }}:
- task: UseDotNet@2
displayName: Install .NET 9.0 SDK for ESRP CLI Workaround
inputs:
packageType: sdk
version: 9.0.x
installationPath: ${{ parameters.microBuildOutputFolder }}/.dotnet
workingDirectory: ${{ parameters.microBuildOutputFolder }}
condition: and(succeeded(), eq(variables['Agent.OS'], 'Linux'))

- task: PowerShell@2
displayName: Workaround for ESRP CLI on Linux
inputs:
targetType: 'inline'
script: |
Write-Host "Copying Linux Path"
$MBSIGN_APPFOLDER = '$(MBSIGN_APPFOLDER)'
$MBSIGN_APPFOLDER = ($MBSIGN_APPFOLDER -replace '/build', '')

$versionRegex = '\d+\.\d+\.\d+'
$package = Get-ChildItem -Path $MBSIGN_APPFOLDER -Directory |
Where-Object { $_.Name -match $versionRegex }

if ($package.Count -ne 1) {
Write-Host "There should be exactly one matching subfolder, but found $($package.Count)."
exit 1
}

$MBSIGN_APPFOLDER = $package[0].FullName + '/build'
$MBSIGN_APPFOLDER | Write-Host
$SignConfigPath = $MBSIGN_APPFOLDER + '/signconfig.xml'
Copy-Item -Path "$(MBSIGN_APPFOLDER)/signconfig.xml" -Destination $SignConfigPath -Force
condition: and(succeeded(), eq(variables['Agent.OS'], 'Linux'))
2 changes: 1 addition & 1 deletion eng/common/sdl/packages.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Microsoft.Guardian.Cli" version="0.109.0"/>
<package id="Microsoft.Guardian.Cli" version="0.199.0"/>
</packages>
Loading
Loading