title: How to specify path for file from different project in WPF?
body: <p>I've got two projects in WPF and one project is the main one and the second one is just for testing (it uses files of the main project - files are added via Project -> add -> Existing items... -> selected file -> add as link so that the file is only in the main project really). </p>
  
  <p>Folders with projects are these:</p>
  
  <pre><code>C:\Work\...\Projects\Main
  C:\Work\...\Projects\XXXTestProject
  </code></pre>
  
  <p>where XXX stands for different parts of the Main project which I test separately.</p>
  
  <p>I've got the code:</p>
  
  <pre><code>&lt;Window x:Class="Sokoban.Window1"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:local="clr-namespace:Sokoban"
      xmlns:diag="clr-namespace:System.Diagnostics;assembly=WindowsBase"
      Title="Window1" Height="559" Width="419"&gt;
      &lt;Window.Resources&gt;        
          &lt;ResourceDictionary&gt;
              &lt;ResourceDictionary.MergedDictionaries&gt;
                  &lt;ResourceDictionary Source="GameDesk.xaml" /&gt;
              &lt;/ResourceDictionary.MergedDictionaries&gt;
          &lt;/ResourceDictionary&gt;
      &lt;/Window.Resources&gt;
  
      &lt;Grid&gt;        
          &lt;Rectangle local:GameDeskProperties.FieldSize="30" Name="myrect" Style="{DynamicResource GameDesk}" MouseEnter="Rectangle_MouseEnter" /&gt;
      &lt;/Grid&gt;
  &lt;/Window&gt;
  </code></pre>
  
  <p>... which should use XAML resources from GameDesk.xaml which is in the main project and it seems that I can't use Pack URI (<a href="http://msdn.microsoft.com/en-us/library/aa970069.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/aa970069.aspx</a>). How can I specify the file?</p>
  
  <ul>
  <li><p>Should I use absolute path? (C:\Work...\Main\Resources\GameDesk.xaml)</p></li>
  <li><p>Or is there any other way?</p></li>
  </ul>
  
  <p>Thank you for help!</p>