Skip to content

chore: Remove PDB files when DebugType is none or DebugSymbols is false - #23206

Merged
Xiaoy312 merged 1 commit into
masterfrom
dev/xygu/20260505/no-release-pdb
May 7, 2026
Merged

Xiaoy312 merged 1 commit into
masterfrom
dev/xygu/20260505/no-release-pdb

Conversation

@Xiaoy312

@Xiaoy312 Xiaoy312 commented May 5, 2026 •

Copy link
Copy Markdown
Contributor

GitHub Issue: closes https://github.com/unoplatform/kahua-private/issues/459

PR Type:

🏗️ Build or CI related changes

What changed? 🚀

Adds an MSBuild target RemovePdbFilesFromOutput in uno.winui.runtime-replace.targets that removes .pdb files from ReferenceCopyLocalPaths and RuntimeTargetsCopyLocalItems when $(DebugType) is none or $(DebugSymbols) is false, preventing PDB files from being included in the output.

PR Checklist ✅

Copilot AI review requested due to automatic review settings May 5, 2026 15:43
@github-actions github-actions Bot added the area/build Categorizes an issue or PR as relevant to build infrastructure label May 5, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Uno WinUI runtime replacement MSBuild targets to prevent .pdb files from being copied into build outputs when building in Release, reducing Release artifact size/noise for consumers of the targets.

Changes:

  • Add a RemovePdbFilesFromOutput target that removes .pdb items from ReferenceCopyLocalPaths and RuntimeTargetsCopyLocalItems in Release.
  • Hook the target via AfterTargets to run after runtime replacement / lock-file copy-local resolution.

PR description note: The PR currently has no linked issue (“n/a”). If this is intentional, please add a note in the PR description in the required format (e.g., “Note: No related issue (Internal maintenance / Approved by Team member: @).”) or link the relevant issue using a fully-qualified URL.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@unodevops

Copy link
Copy Markdown
Contributor

@Xiaoy312
Xiaoy312 force-pushed the dev/xygu/20260505/no-release-pdb branch from 9db4ceb to a7d8ca7 Compare May 5, 2026 17:22
Copilot AI review requested due to automatic review settings May 5, 2026 18:15

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings May 5, 2026 18:25
@Xiaoy312 Xiaoy312 changed the title chore: Remove PDB files from Release output chore: Remove PDB files when DebugType is none or DebugSymbols is false May 5, 2026
@Xiaoy312
Xiaoy312 enabled auto-merge May 5, 2026 18:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 210965 has failed on Uno.UI - CI.

@ajpinedam

Copy link
Copy Markdown
Contributor

How much it bothers me when this happens! 😥

image

cc: @Xiaoy312

@Xiaoy312
Xiaoy312 force-pushed the dev/xygu/20260505/no-release-pdb branch from 83b4814 to cf337c5 Compare May 6, 2026 13:53
@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 211188 has failed on Uno.UI - CI.

@Xiaoy312
Xiaoy312 merged commit a1ec8a4 into master May 7, 2026
63 checks passed
@Xiaoy312
Xiaoy312 deleted the dev/xygu/20260505/no-release-pdb branch May 7, 2026 04:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/build Categorizes an issue or PR as relevant to build infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants