Skip to content

Commit 6dd0522

Browse files
azure-powershell-botazurepowershell
and
azurepowershell
authored
Sync tools folder from main branch to generation branch (#25411)
Co-authored-by: azurepowershell <azurepowershell@ms.com>
1 parent 430f891 commit 6dd0522

File tree

2 files changed

+100
-98
lines changed

2 files changed

+100
-98
lines changed

tools/BuildScripts/RemoveUnwantedFiles.ps1

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
# .\RemoveRuntimeAssemblies.ps1 -RootPath "C:\repo\azure-powershell\artifacts\Debug\" -CodeSign
2424
# This example removes the runtime assemblies and the runtimes folder
2525
# .NOTES
26-
# It's unclear whether removing the runtimes folder is still necessary because the folder doesn't seem to exist in the build process.
26+
# 1. It's unclear whether removing the runtimes folder is still necessary because the folder doesn't seem to exist in the build process.
27+
# 2. Whenever a new "System" dependency is introduced, and it's not in PowerShell's runtime by default, add it to $RuntimeDllsExcludeList
2728
#>
2829

2930
param(
@@ -54,7 +55,8 @@ $RuntimeDllsExcludeList = @(
5455
'System.Management.dll',
5556
'System.Text.Json.dll',
5657
'System.Threading.Tasks.Extensions.dll',
57-
'System.IO.Hashing.dll'
58+
'System.IO.Hashing.dll',
59+
'System.ClientModel.dll'
5860
)
5961

6062
$toRemove = Get-ChildItem -Path $RootPath -Recurse -Include $RuntimeDllsIncludeList -Exclude $RuntimeDllsExcludeList

0 commit comments

Comments
 (0)