Handling multiple versions of library containing WPF/XAML

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello
I have a problem with loading multiple versions of DLLs containing WPF code, specifically .xaml files.
My setup is as follows:
I have to applications, "AppA" and "AppB", which both uses a library, "Lib". Since the two applications can be compiled/installed at different times they must be able to use different versions of my library. This in itself is no issue since I create the library I have solved it using strong name signing of the library.
The problem occurs as soon as there are .xaml files in the library. Then it fails to load the .xaml from the correct library version, it seems it always tries to load it from the oldest version. Then I get the attached exception.
I have read the blog post (linked below) by Jeremy Tammik, but I can't get it to work. I have tested the AssemblyResolve, but it tries to resolve the Lib.resources and not the Lib.dll.
http://thebuildingcoder.typepad.com/blog/2017/06/handling-third-party-library-dll-conflicts.html
Is there a fix for this?
Regards
Fredrik