Skip to content

Commit

Permalink
Sync tools folder from main branch to generation branch (#25411)
Browse files Browse the repository at this point in the history
Co-authored-by: azurepowershell <[email protected]>
  • Loading branch information
azure-powershell-bot and azurepowershell authored Jun 30, 2024
1 parent 430f891 commit 6dd0522
Show file tree
Hide file tree
Showing 2 changed files with 100 additions and 98 deletions.
6 changes: 4 additions & 2 deletions tools/BuildScripts/RemoveUnwantedFiles.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
# .\RemoveRuntimeAssemblies.ps1 -RootPath "C:\repo\azure-powershell\artifacts\Debug\" -CodeSign
# This example removes the runtime assemblies and the runtimes folder
# .NOTES
# It's unclear whether removing the runtimes folder is still necessary because the folder doesn't seem to exist in the build process.
# 1. It's unclear whether removing the runtimes folder is still necessary because the folder doesn't seem to exist in the build process.
# 2. Whenever a new "System" dependency is introduced, and it's not in PowerShell's runtime by default, add it to $RuntimeDllsExcludeList
#>

param(
Expand Down Expand Up @@ -54,7 +55,8 @@ $RuntimeDllsExcludeList = @(
'System.Management.dll',
'System.Text.Json.dll',
'System.Threading.Tasks.Extensions.dll',
'System.IO.Hashing.dll'
'System.IO.Hashing.dll',
'System.ClientModel.dll'
)

$toRemove = Get-ChildItem -Path $RootPath -Recurse -Include $RuntimeDllsIncludeList -Exclude $RuntimeDllsExcludeList
Expand Down
Loading

0 comments on commit 6dd0522

Please sign in to comment.