File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
azure-pipelines/variables Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments