Skip to content

fix WPF relative resource renaming#565

Open
ryanroe wants to merge 2 commits into
mkaring:masterfrom
ryanroe:fix/wpf-relative-resource
Open

fix WPF relative resource renaming#565
ryanroe wants to merge 2 commits into
mkaring:masterfrom
ryanroe:fix/wpf-relative-resource

Conversation

@ryanroe

@ryanroe ryanroe commented Aug 22, 2025

Copy link
Copy Markdown

fix #550

Copilot AI review requested due to automatic review settings August 22, 2025 07:41

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull Request Overview

Fixes WPF relative resource renaming by correcting how file names are extracted and passed to the rename method. The change addresses issue #550 by ensuring that only the filename portion (without directory path) is used for renaming operations.

  • Extracts filename portion separately from directory path calculation
  • Updates rename calls to use filename instead of full path
  • Improves variable naming for clarity

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread Confuser.Renamer/Analyzers/WPFAnalyzer.cs Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
mcpolo99 pushed a commit to mcpolo99/ConfuserExx that referenced this pull request Jun 7, 2026
Cherry-pick of mkaring#565. Fixes relative resource path
handling in WPF ResourceDictionary entries by passing relative file
names (not full paths) to bamlRef.Rename(), ensuring BAML references
using relative URIs are correctly updated during renaming.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Application doesn't work when resource directory contains relative resource

2 participants