title: PRISM: referencing DLL's in the main Project that Module depends on
body: <p>I am getting this exception in the main Project PrismDashboard:</p>
  
  <blockquote>
    <p>Source\PrismDashboard\bin\Debug\PrismDashboard.vshost.exe
    System.Windows.Markup.XamlParseException occurred
    HResult=-2146233087
    Message=Could not load file or assembly 'Microsoft.Expression.Interactions, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.</p>
  </blockquote>
  
  <p>This is the project with Bootrstrapper and Shell. It is happening because Shell is using ModuleA from another Project:</p>
  
  <blockquote>
    <p>Source\Modules\ModuleA</p>
  </blockquote>
  
  <p>That requires refrence to <code>Microsoft.Expression.Interactions</code> and I can see that this DLL exists in:</p>
  
  <blockquote>
    <p>Source\Modules\ModuleA\bin\Debug</p>
  </blockquote>
  
  <p>I'm not getting compile error, and I'm getting runtime error.
  ModuleA View will be injected into Shell Region, and this View requires Microsoft.Expression.Interactions which is referenced in ModuleA project but not in the main Project with Bootstrapper and Shell.</p>
  
  <p>I don't want to add reference to DLL's required by other projects in my main project.
  Have tried to set Embaded Interop Types on reference in ModulaA but getting error:</p>
  
  <blockquote>
    <p>Error  1   Cannot embed interop types from assembly 'c:\Program Files (x86)\Microsoft SDKs\Expression\Blend.NETFramework\v4.0\Libraries\Microsoft.Expression.Interactions.dll' because it is missing either the 'ImportedFromTypeLibAttribute' attribute or the 'PrimaryInteropAssemblyAttribute' attribute   c:\Program Files (x86)\Microsoft SDKs\Expression\Blend.NETFramework\v4.0\Libraries\Microsoft.Expression.Interactions.dll   ModuleA
        Error   2   Cannot embed interop types from assembly 'c:\Program Files (x86)\Microsoft SDKs\Expression\Blend.NETFramework\v4.0\Libraries\Microsoft.Expression.Interactions.dll' because it is missing the 'GuidAttribute' attribute    c:\Program Files (x86)\Microsoft SDKs\Expression\Blend.NETFramework\v4.0\Libraries\Microsoft.Expression.Interactions.dll   ModuleA</p>
  </blockquote>