Skip to content

Commit

Permalink
Do not build solutions in the .\packages folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakob Lichtenberg committed Feb 7, 2024
1 parent b2476b6 commit d7005d7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Build-AllSamples.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ $sampleSet = @{}
foreach ($file in $solutionFiles) {
$dir = (Get-Item $file).DirectoryName
$dir_norm = $dir.Replace($root, '').Trim('\').Replace('\', '.').ToLower()
if ($dir_norm -match ($Samples)) {
if ($dir_norm -match ("^packages.")) {
Write-Verbose "`u{1F50E} Found and ignored non-sample [$dir_norm] at $dir"
}
elseif ($dir_norm -match ($Samples)) {
Write-Verbose "`u{1F50E} Found and filtered in sample [$dir_norm] at $dir"
$sampleSet[$dir_norm] = $dir
}
Expand Down

0 comments on commit d7005d7

Please sign in to comment.