Skip to content

Commit 8920d04

Browse files
author
Maddie Clayton
authored
Update CleanupBuild.ps1
1 parent bc8ae1c commit 8920d04

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

tools/CleanupBuild.ps1

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -61,19 +61,6 @@ foreach ($RMFolder in $resourceManagerFolders)
6161
$stackFolders = Get-ChildItem -Path $stackPath -Directory
6262
foreach ($stackFolder in $stackFolders)
6363
{
64-
$psd1 = Get-ChildItem -Path $stackFolder.FullName -Filter "$($stackFolder.Name).psd1"
65-
Import-LocalizedData -BindingVariable ModuleMetadata -BaseDirectory $psd1.DirectoryName -FileName $psd1.Name
66-
67-
$acceptedDlls = @()
68-
$acceptedDlls += $ModuleMetadata.NestedModules
69-
$acceptedDlls += $ModuleMetadata.RequiredAssemblies
70-
71-
$acceptedDlls = $acceptedDlls | where { $_ -ne $null } | % { $_.Substring(2) }
72-
73-
Write-Verbose "Removing redundant dlls in $($stackFolder.Name)"
74-
$removedDlls = Get-ChildItem -Path $stackFolder.FullName -Filter "*.dll" | where { $acceptedDlls -notcontains $_.Name}
75-
$removedDlls | % { Write-Verbose "Removing $($_.Name)"; Remove-Item $_.FullName -Force }
76-
7764
Write-Verbose "Removing scripts and psd1 in $($stackFolder.FullName)"
7865
if (Test-Path -Path "$($stackFolder.FullName)\StartupScripts")
7966
{

0 commit comments

Comments
 (0)