File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -152,17 +152,17 @@ function Add-ProjectDependencies
152
152
[string ]$SolutionPath
153
153
)
154
154
155
+ $CommonProjectsToIgnore = @ (" ScenarioTest.ResourceManager" , " TestFx" , " Tests" )
155
156
$CsprojList = @ ()
156
157
$Content = Get-Content - Path $SolutionPath
157
158
$SolutionFoloderPath = Split-Path - Parent $SolutionPath
158
- $Content | Select-String - Pattern " `" [a-zA-Z0-9`.`\\`/]*.csproj`" " | ForEach-Object { $_.Matches [0 ].Value.Trim(' "' ) } | ForEach-Object { $CsprojList += $_ }
159
+ $Content | Select-String - Pattern " `" [a-zA-Z0-9`.`\\`/]*.csproj`" " | ForEach-Object { $_.Matches [0 ].Value.Trim(' "' ) } | Where-Object { $CommonProjectsToIgnore -notcontains $_ } | ForEach-Object { $CsprojList += $_ }
159
160
160
161
foreach ($Csproj in $CsprojList )
161
162
{
162
163
try
163
164
{
164
165
$CsprojAbslutionPath = Resolve-Path - Path ($SolutionFoloderPath + " \\" + $Csproj )
165
- Write-Host $CsprojAbslutionPath
166
166
}
167
167
catch
168
168
{
@@ -300,13 +300,15 @@ function Add-CsprojMappings
300
300
foreach ($Solution in $Script :ProjectToSolutionMappings [$ProjectName ])
301
301
{
302
302
$ProjectNameFromSolution = Get-ModuleFromPath $Solution
303
+ Write-Host $ProjectNameFromSolution $Project - ForegroundColor Green
303
304
if ($ProjectNameFromSolution -eq $Project )
304
305
{
305
306
foreach ($ReferencedProject in $Script :SolutionToProjectMappings [$Solution ])
306
307
{
307
308
$TempValue = $Script :ProjectToFullPathMappings [$ReferencedProject ]
308
309
if (-not [string ]::IsNullOrEmpty($TempValue ))
309
310
{
311
+ Write-Host $TempValue $ReferencedProject - ForegroundColor Yellow
310
312
$Values.Add ($TempValue ) | Out-Null
311
313
}
312
314
}
You can’t perform that action at this time.
0 commit comments