Skip to content

Commit 66ae839

Browse files
committed
Merge branch 'v16.9'
2 parents 87baf58 + 896be35 commit 66ae839

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

azure-pipelines/variables/InsertPropsValues.ps1

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@ $BinPath = [System.IO.Path]::GetFullPath("$PSScriptRoot\..\..\bin\Packages\$env:
22

33
$dirsToSearch = "$BinPath\NuGet\*.nupkg" |? { Test-Path $_ }
44
$icv=@()
5-
if ($dirsToSearch) {
5+
6+
# Avoid updating the .props world for an optprof run.
7+
# This avoids analyzer updates that are unrelated and can cause build breaks
8+
# as well as breaks in servicing branches when we insert a PublicRelease=false unstable package version.
9+
if ($dirsToSearch -and !$env:OPTPROF) {
610
Get-ChildItem -Path $dirsToSearch |% {
711
if ($_.Name -match "^(.*)\.(\d+\.\d+\.\d+(?:-.*?)?)(?:\.symbols)?\.nupkg$") {
812
$id = $Matches[1]
913
$version = $Matches[2]
10-
# Avoid inserting analyzers in an optprof run.
11-
if ($env:OPTPROF -ne 'true' -or $_.Name -notlike '*Analyzers*') {
12-
$icv += "$id=$version"
13-
}
14+
$icv += "$id=$version"
1415
}
1516
}
1617
}

0 commit comments

Comments
 (0)