From 3d8023e18ef195ee609d9357cc8c25e011a745d9 Mon Sep 17 00:00:00 2001 From: Wiktor Kopec Date: Tue, 11 Nov 2025 09:31:55 -0800 Subject: [PATCH] Reapply "Use dotnet-monitor asset instead of merge manfest for versioning (#8563) (#8575)" (#8719) This reverts commit 04033459429df6af8fcacbf116c8fa369cfaad4f. --- eng/pipelines/dotnet-monitor-release.yml | 2 +- eng/release/Scripts/GetBuildVersion.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/eng/pipelines/dotnet-monitor-release.yml b/eng/pipelines/dotnet-monitor-release.yml index f2fa8271370..ebd357ad7fe 100644 --- a/eng/pipelines/dotnet-monitor-release.yml +++ b/eng/pipelines/dotnet-monitor-release.yml @@ -141,7 +141,7 @@ variables: $buildData = $buildInfo | ConvertFrom-Json - [array]$matchingData = $buildData.assets | Where-Object { $_.name -match 'MergedManifest.xml$' -and $_.nonShipping } + [array]$matchingData = $buildData.assets | Where-Object { $_.name -eq 'dotnet-monitor' } if (!$matchingData -or $matchingData.Length -ne 1) { Write-Error 'Unable to obtain build version.' diff --git a/eng/release/Scripts/GetBuildVersion.ps1 b/eng/release/Scripts/GetBuildVersion.ps1 index 832fc54098b..b94bd6afa2c 100644 --- a/eng/release/Scripts/GetBuildVersion.ps1 +++ b/eng/release/Scripts/GetBuildVersion.ps1 @@ -15,7 +15,7 @@ $buildData = & $PSScriptRoot\GetDarcBuild.ps1 ` -MaestroApiEndPoint $MaestroApiEndPoint ` -DarcVersion $DarcVersion -[array]$matchingData = $buildData.assets | Where-Object { $_.name -match 'MergedManifest.xml$' -and $_.nonShipping } +[array]$matchingData = $buildData.assets | Where-Object { $_.name -eq 'dotnet-monitor' } if (!$matchingData -or $matchingData.Length -ne 1) { Write-Error 'Unable to obtain build version.'