Zahid Nisar
Zahid Nisar

Reputation: 882

MahApps.Metro use Colour.xaml and Color.xam with new versions

I have user control dll which is built with MahApps.Metro 0.1.1 and host app that is trying to use it. The host app is using latest version 1.5.0 of MahApps few years back there was a breaking change in MahApps which was renaming of Colours.xaml to Colors.xaml which is resourcedictionary this is the only thing that is causing the issue . I dont have the code of user control dll so i can't compile it but I still want to use new version of MahApps.Metro in host app. How can I add Colours.xaml to latest version of maha apps so I can use at same time. If I compile Mahapps from source code and add Colours.xaml into it try to use the project starts giving me publickeytoken errors due strongly named assembly.

is there a way to load two different version of same assemblies with different public key token .

Upvotes: 0

Views: 244

Answers (1)

igorc
igorc

Reputation: 2034

  1. Look here how to load multiple versions of the same dll.
  2. You can decompile the control dll (if its not protected ) into full project with dotPeek,then replace the mahApps reference and recompile again.

Upvotes: 1

Related Questions