Skip to content

Xaml source not from primary or reference assembly - #271

Merged
KirillOsenkov merged 3 commits into
gluck:masterfrom
droppedcode:master
Jan 5, 2024
Merged

KirillOsenkov merged 3 commits into
gluck:masterfrom
droppedcode:master

Conversation

@droppedcode

@droppedcode droppedcode commented Jun 3, 2020 •

Copy link
Copy Markdown
Contributor

If there are 3 assemblies: Primary, Reference, Source the TryPatchPath would not patch the path and a wrong would be generated as relative path (eg. /Referencepack://...)

Primary: content does not matter
Source: contains a ResourceDictionary (ex. Resources/Test.xaml) which we want to add to Reference
Reference: contains a xaml with code like this:

Without fix it would create:
<ResourceDictionary Source="/Reference/Source;component/Resources/Test.xaml" />

With fix it create:
<ResourceDictionary Source="/Primary;component/Source/Resources/Test.xaml" />

See attached example application with arguments:
args.txt
ILRepackSourceFix.zip

@KirillOsenkov KirillOsenkov left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

👍

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.

2 participants