title: The resource "x" could not be resolved.
body: <p>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:</p>
  
  <p>I have a <code>ResourceDictionary</code> in my main project called <code>AppStyles.xaml</code>, and in the <code>App.Xaml</code> I have the following:</p>
  
  <pre><code>&lt;ResourceDictionary&gt;
    &lt;ResourceDictionary.MergedDictionaries&gt;
       &lt;ResourceDictionary Source="AppStyles.xaml"/&gt;
    &lt;ResourceDictionary.MergedDictionaries&gt;
  &lt;/ResourceDictionary&gt;
  </code></pre>
  
  <p>In my <code>ResourceDictionary</code> there is a style, and I could then apply this style to any button in any of my projects by setting <code>Style={StaticResource MyButton}</code>.</p>
  
  <p>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!</p>
  
  <p>Is there a different way that I should be doing this or is there a problem in VS 2012?</p>