From 8e26a4c077f208ea835a2ca1ac81fac74e0b2ec4 Mon Sep 17 00:00:00 2001 From: Hongtao Zhang Date: Sun, 16 Mar 2025 22:37:23 -0500 Subject: [PATCH] delete only the first level dll --- Scripts/post_build.ps1 | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Scripts/post_build.ps1 b/Scripts/post_build.ps1 index a10441026..81b6f3d4b 100644 --- a/Scripts/post_build.ps1 +++ b/Scripts/post_build.ps1 @@ -40,12 +40,6 @@ function Delete-Unused ($path, $config) { $target = "$path\Output\$config" $included = Get-ChildItem $target -Filter "*.dll" foreach ($i in $included){ - $ignored = ["System.Text.Encodings.Web.dll"] - - if ($ignored.Contains($i.Name)) { - # ignore some specific dll that seems to make issue - continue - } foreach ($plugin in Get-ChildItem $target\Plugins){ $deleteList = Get-ChildItem $target\Plugins -Filter $i.Name | Where { $_.VersionInfo.FileVersion -eq $i.VersionInfo.FileVersion -And $_.Name -eq $i.Name } $deleteList | ForEach-Object{ Write-Host Deleting duplicated $_.Name with version $_.VersionInfo.FileVersion at location $_.Directory.FullName }