Skip to content

Commit d770e6d

Browse files
committed
try delete only the first level dll
1 parent a870e27 commit d770e6d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Scripts/post_build.ps1

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,11 @@ function Delete-Unused ($path, $config) {
4646
# ignore some specific dll that seems to make issue
4747
continue
4848
}
49-
$deleteList = Get-ChildItem $target\Plugins -Filter $i.Name -Recurse | Where { $_.VersionInfo.FileVersion -eq $i.VersionInfo.FileVersion -And $_.Name -eq $i.Name }
50-
$deleteList | ForEach-Object{ Write-Host Deleting duplicated $_.Name with version $_.VersionInfo.FileVersion at location $_.Directory.FullName }
51-
$deleteList | Remove-Item
49+
foreach ($plugin in Get-ChildItem $target\Plugins){
50+
$deleteList = Get-ChildItem $target\Plugins -Filter $i.Name | Where { $_.VersionInfo.FileVersion -eq $i.VersionInfo.FileVersion -And $_.Name -eq $i.Name }
51+
$deleteList | ForEach-Object{ Write-Host Deleting duplicated $_.Name with version $_.VersionInfo.FileVersion at location $_.Directory.FullName }
52+
$deleteList | Remove-Item
53+
}
5254
}
5355
Remove-Item -Path $target -Include "*.xml" -Recurse
5456
}

0 commit comments

Comments
 (0)