File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -61,19 +61,6 @@ foreach ($RMFolder in $resourceManagerFolders)
61
61
$stackFolders = Get-ChildItem - Path $stackPath - Directory
62
62
foreach ($stackFolder in $stackFolders )
63
63
{
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
-
77
64
Write-Verbose " Removing scripts and psd1 in $ ( $stackFolder.FullName ) "
78
65
if (Test-Path - Path " $ ( $stackFolder.FullName ) \StartupScripts" )
79
66
{
You can’t perform that action at this time.
0 commit comments