title: Why ResourceDictionary in same assembly is not found?
body: <p>I have copied some functionality / files from one solution to another. </p>
  
  <p>In solution 1 I have Windows Application DemoApp1 that has folders:</p>
  
  <ul>
  <li>Shell</li>
  <li>Ribbon/Resources</li>
  </ul>
  
  <p>In Shell/ShellView.xaml </p>
  
  <pre><code>&lt;UserControl.Resources&gt;
      &lt;ResourceDictionary&gt;
          &lt;ResourceDictionary.MergedDictionaries&gt;
              &lt;ResourceDictionary Source="/Ribbon/Resources/Ribbon.xaml"/&gt;
          &lt;/ResourceDictionary.MergedDictionaries&gt;
      &lt;/ResourceDictionary&gt;
  &lt;/UserControl.Resources&gt;
  </code></pre>
  
  <p>above works with no problem.</p>
  
  <p>In solution 2 I have Windows Application DemoApp2 that does very little. App-class inherits from a class in C# Class Library DemoApp2Feature that does most of the things.</p>
  
  <p>The Shell and Ribbond folder structure and files are the same in Class Library DemoApp2Feature. However here that above results in:</p>
  
  <p>XamlParseException 'Set property 'System.Windows.ResourceDictionary.Source' threw an excetion'.</p>
  
  <p>When I look in VS2015 exception details BaseUri looks like this:</p>
  
  <p>{pack://application:,,,/DemoApp2Feature;component/shell/shellview.xaml}</p>
  
  <p>I would like to keep the files and folder-structure the same also in DemoApp2Feature because there's dozens of files that has these MergedDictionaries-definitions. So how can I tell what is the base for the place where to look for ResourceDictionaries for DemoApp2Feature.</p>