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" />
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