I am having an issue merging a ResourceDictionary
that is in a referenced dll.
Here is my setup:
I am using Visual Studio 2012 with the latest updates.
In one solution, I have a project called Utils
which contains a ResourceDictionary
called Styles.xaml
. The build action is set to Page. Here is a snippet of what it looks like:
In another solution, I have an application project which references Utils.dll
. In my App.xaml file, I'm trying to merge the Styles.xaml
dictionary in Utils
. Here is that snippet:
The error that I'm getting when trying to merge this dictionary is An error occurred while finding the resource dictionary "/Utils;component/WPFStyles/Styles.xaml".
I've tried changing the Source to be Source="pack://application:,,,/Utils;component/WPFStyles/Styles.xaml"
but that didn't help.
I've also tried changing the build action to Resource, which gave me no luck either.
The odd thing about this (at least I think it's odd) is that I have no problem merging the ResourceDictionary when I have the Utils project referenced in another project in the same solution. This problem only occurs when I try to reference Utils.dll in another solution.
If anyone has any ideas, I would really really appreciate it because I'm running out of things to try.