title: Problem unit testing silverlight project with dynamically downloaded xaps
body: <p>We have a Loader project and a Core project. The core project is what contains all our views and view models we need to unit test.When testing the view models we want to run the loader like it would normally so it correctly sets up any required services. To do this we thought we could create a test bootstrapper that inherits from the Loader projects bootstrapper. This will enable our navigation service and IOC container so we can then test the view models. </p>
  
  <p>The problem we found though is because we are inheriting from the loader bootstrapper and will be calling the view models directly in our unit tests we need a project reference to both the loader and the core. This adds the Loader.dll and Core.dll to the Test Projects xap file.</p>
  
  <p>when we kick of the TestBootstrapper that inherites from Loader.Bootstrapper, the Loader project downloads the core.xap and imports the core.bootstrapper to initialise it. however by doing this when mef tries to import the core.bootstraper it is matching it with the core.xap that the loader downloads and the testproject.xap that has a a reference to the core project. This causes the import to fail because it has already been initialised. </p>
  
  <p>Is there a way we can still dynamically download the xaps but won't cause issue with cross referencing between projects? </p>