Skip to content

Commit 3ea6da0

Browse files
committed
Fix issue with Accounts not building/testing all services when updated
1 parent 6868b15 commit 3ea6da0

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tools/CreateFilterMappings.ps1

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,11 @@ function Add-ProjectDependencies
148148
[string]$SolutionPath
149149
)
150150

151-
$CommonProjectsToIgnore = @( "Accounts", "Authentication", "Authentication.ResourceManager", "Authenticators", "ScenarioTest.ResourceManager", "TestFx", "Tests" )
151+
$CommonProjectsToIgnore = @( "Authentication", "Authentication.ResourceManager", "Authenticators", "ScenarioTest.ResourceManager", "TestFx", "Tests" )
152152

153153
$ProjectDependencies = @()
154154
$Content = Get-Content -Path $SolutionPath
155-
$Content | Select-String -Pattern "`"[a-zA-Z.]*`"" | ForEach-Object { $_.Matches[0].Value.Trim('"') } | Where-Object { $CommonProjectsToIgnore -notcontains $_ } | Where-Object { $ProjectDependencies += $_ }
155+
$Content | Select-String -Pattern "`"[a-zA-Z.]*`"" | ForEach-Object { $_.Matches[0].Value.Trim('"') } | Where-Object { $CommonProjectsToIgnore -notcontains $_ } | ForEach-Object { $ProjectDependencies += $_ }
156156
$Mappings[$SolutionPath] = $ProjectDependencies
157157
return $Mappings
158158
}
@@ -271,7 +271,11 @@ function Add-CsprojMappings
271271
{
272272
foreach ($ReferencedProject in $Script:SolutionToProjectMappings[$Solution])
273273
{
274-
$Values.Add($Script:ProjectToFullPathMappings[$ReferencedProject]) | Out-Null
274+
$TempValue = $Script:ProjectToFullPathMappings[$ReferencedProject]
275+
if (-not [string]::IsNullOrEmpty($TempValue))
276+
{
277+
$Values.Add($TempValue) | Out-Null
278+
}
275279
}
276280
}
277281
}

0 commit comments

Comments
 (0)