File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,12 @@ Set-StrictMode -Version 4
1818$TargetProjects = $ProjectNames -split " ,"
1919$RepoRoot = Resolve-Path (Join-Path " $PSScriptRoot " " .." " .." )
2020
21- $snippetEnabledProjects = Get-ChildItem - Recurse " $PackageInfoFolder " * .json `
21+ $snippetEnabledProjects = ( Get-ChildItem - Recurse " $PackageInfoFolder " * .json `
2222| Foreach-Object { Get-Content - Raw - Path $_.FullName | ConvertFrom-Json } `
2323| Where-Object { $_.ArtifactName -in $TargetProjects -and $_.CIParameters.BuildSnippets -eq $true }
24+ | ForEach-Object { $_.ArtifactName }) -join " ,"
2425
25- $scopedFile = Write-PkgInfoToDependencyGroupFile - OutputPath " $RepoRoot " - PackageInfoFolder $PackageInfoFolder - ProjectNames $TargetProjects
26+ $scopedFile = Write-PkgInfoToDependencyGroupFile - OutputPath " $RepoRoot " - PackageInfoFolder $PackageInfoFolder - ProjectNames $snippetEnabledProjects
2627
2728Write-Host " Writing project list to $scopedFile "
2829Write-Host (Get-Content - Raw - Path $scopedFile )
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ function Get-AllPackageInfoFromRepo($serviceDirectory)
121121 if ($ciProps ) {
122122 # CheckAOTCompat is opt _in_, so we should default to false if not specified
123123 $shouldAot = GetValueSafelyFrom- Yaml $ciProps.ParsedYml @ (" extends" , " parameters" , " CheckAOTCompat" )
124- if ($shouldAot ) {
124+ if ($null -ne $ shouldAot ) {
125125 $parsedBool = $null
126126 if ([bool ]::TryParse($shouldAot , [ref ]$parsedBool )) {
127127 $pkgProp.CIParameters [" CheckAOTCompat" ] = $parsedBool
You can’t perform that action at this time.
0 commit comments