Files
PowerToys/tools/Verification scripts
Boliang Zhang (from Dev Box) 733d3c7131 Remove unused MFC/AMP/OpenMP DLLs from build output and installer
VC++ Redistributable copies MFC, C++ AMP, and OpenMP DLLs into the
build output via CopyCppRuntimeToOutputDir, but no PowerToys binary
imports them (verified with dumpbin /dependents).

- Add RemoveUnusedVCRuntimeDlls target in Directory.Build.targets to
  delete mfc140*.dll, mfcm140*.dll, vcamp140*.dll, vcomp140*.dll
  from OutDir after CopyCppRuntimeToOutputDir copies them.
- Add MFC DLLs to exclusion list in generateAllFileComponents.ps1
  to prevent them from being packaged in the installer.

Saves ~11 MB per output location.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-10 20:02:17 +08:00
..