I have recently upgraded to VS 2012, I had to as I needed to start using the .net 4.5 but that is besides the point. My problem is the following:
I have a ResourceDictionary in my main project called AppStyles.xaml, and in the App.Xaml I have the following:
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="AppStyles.xaml"/>
<ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
In my ResourceDictionary there is a style, and I could then apply this style to any button in any of my projects by setting Style={StaticResource MyButton}.
After upgrading to VS 2012 I noticed I get the error in the title a lot, and sometimes it stops me from debugging and sometimes it doesn't!
Is there a different way that I should be doing this or is there a problem in VS 2012?