Skip to content

Commit b065779

Browse files
committed
Throw exception if a solution reference a not exist csproj.
1 parent eb3a57d commit b065779

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tools/CreateFilterMappings.ps1

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,17 +152,16 @@ function Add-ProjectDependencies
152152
[string]$SolutionPath
153153
)
154154

155-
$CommonProjectsToIgnore = @("ScenarioTest.ResourceManager", "TestFx", "Tests" )
156155
$CsprojList = @()
157156
$Content = Get-Content -Path $SolutionPath
158157
$SolutionFoloderPath = Split-Path -Parent $SolutionPath
159-
$Content | Select-String -Pattern "`"[a-zA-Z0-9`.`\\`/]*.csproj`"" | ForEach-Object { $_.Matches[0].Value.Trim('"') } | Where-Object { $CommonProjectsToIgnore -notcontains $_ } | ForEach-Object { $CsprojList += $_ }
158+
$Content | Select-String -Pattern "`"[a-zA-Z0-9`.`\\`/]*.csproj`"" | ForEach-Object { $_.Matches[0].Value.Trim('"') } | ForEach-Object { $CsprojList += $_ }
160159

161160
foreach ($Csproj in $CsprojList)
162161
{
163162
try
164163
{
165-
$CsprojAbslutionPath = Resolve-Path -Path ($SolutionFoloderPath + "\" + $Csproj)
164+
$CsprojAbslutionPath = Resolve-Path -Path ($SolutionFoloderPath + "\\" + $Csproj)
166165
Write-Host $CsprojAbslutionPath
167166
}
168167
catch

0 commit comments

Comments
 (0)