title: Error finding merged resource dictionary in another assembly
body: <p>I'm really beating my head against the wall here. First, some background. The app is a PRISM 4/MVVM app using WPF and my solution is structured as follows:</p>
  
  <pre><code>MyCompany.MyProduct (MyCompany.MyProduct.exe)
  +-- Shell.xaml
         Shell.xaml.cs
      app.config
      (etc)
  MyCompany.MyProduct.Infrastructure (MyCompany.MyProduct.Infrastructure.dll)
  +-- Resources
  |   +-- MyApplicationStyles.xaml
  |       SuperCoolImage.png
  |       (etc)
  +-- BaseClasses
      +-- ViewModelBase.cs
          (etc)
  MyCompany.MyProduct.Modules.ModuleA (MyCompany.MyProduct.Modules.ModuleA.dll)
  +-- ViewModels
  |   +-- StuffViewModel.cs
  |       (etc)
  +-- Views
  +-- StuffView.xaml
         StuffView.xaml.cs
      (etc)
  </code></pre>
  
  <p>Project References:</p>
  
  <ul>
  <li>MyCompany.MyProduct references
  MyCompany.MyProduct.Infrastructure</li>
  <li>MyCompany.MyProduct.Modules.ModuleA
  references
  MyCompany.MyProduct.Infrastructure</li>
  </ul>
  
  <p>Now, In both Shell.xaml and StuffView.xaml, I include a merged dictionary as such:</p>
  
  <pre><code>&lt;ResourceDictionary&gt;
      &lt;ResourceDictionary.MergedDictionaries&gt;
          &lt;ResourceDictionary
              Source="pack://application:,,,/MyCompany.MyProduct.Infrastructure;component/Resources/MyApplicationStyles.xaml"/&gt;
          &lt;/ResourceDictionary.MergedDictionaries&gt;
  &lt;/ResourceDictionary&gt;
  </code></pre>
  
  <p>In both cases, however, I'm running head-first into the following error:</p>
  
  <pre><code>Could not load file or assembly 'MyCompany.MyProduct.Infrastructure, Culture=neutral' or one of its dependencies. The system cannot find the file specified.
  </code></pre>
  
  <p>(sigh) I also notice that the xaml editor is showing me two squiggly errors on this line:</p>
  
  <pre><code>&lt;ResourceDictionary Source="pack://application:,,,/MyCompany.MyProduct.Infrastructure;component/Resources/MyApplicationStyles.xaml"/&gt;
  </code></pre>
  
  <p>The first squiggly error is...</p>
  
  <pre><code>An error occurred while finding the resource dictionary "pack://application:,,,/MyCompany.MyProduct.Infrastrucuture;component/Resources/MyApplicationStyles.xaml".
  </code></pre>
  
  <p>The second (an more curious) squiggly error is...</p>
  
  <pre><code>"Assembly name expected instead of project name."
  </code></pre>
  
  <p>So here's what I've tried:</p>
  
  <ul>
  <li>I've triple-checked that the project references exist (and I've removed and re-added them)</li>
  <li>I've checked that MyCompany.MyProduct.Infrastructure builds successfully</li>
  <li>I've double-checked that the assembly is correct (via AssemblyInfo.cs)</li>
  <li>I've changed the Build Action on MyApplicationStyles.xaml time and again (it's currently set to "Page")</li>
  <li>I've manually cleaned the solution and rebuilt</li>
  <li>I've re-started Visual Studio a couple of times</li>
  <li>I've sacrificed a goat (it's okay... he was a really unfriendly goat)</li>
  </ul>
  
  <p>I'm out of ideas and searching is turning up very little. Any ideas?</p>