To get the basic Prism example project up and running, you need to do several steps not mentioned in the docs.

 

  1. Download and install the Prism templates
  2. Compile the Unity framework for .NET 4.0
  3. Make a new project with the templates
    1. Make one “Quick start solution” to look at for reference. Then make a Shell for your real application and add Modules as needed using the separate Module template
  4. Put the framework Dlls you built into a directory inside your project. You want at least these files:
         Microsoft.Practices.Composite.dll
         Microsoft.Practices.Composite.xml
         Microsoft.Practices.Composite.Presentation.dll
         Microsoft.Practices.Composite.Presentation.xml
         Microsoft.Practices.Composite.UnityExtensions.dll
         Microsoft.Practices.Composite.UnityExtensions.xml
        
         Microsoft.Practices.EnterpriseLibrary.Common.dll
         Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.dll
         Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.dll
         Microsoft.Practices.EnterpriseLibrary.Logging.dll

         Microsoft.Practices.ServiceLocation.dll
         Microsoft.Practices.ServiceLocation.xml

         Microsoft.Practices.Unity.dll
         Microsoft.Practices.Unity.xml
  5. In each project in your solution, add references to the Unity and Prism assemblies that are marked as missing. Load them from the directory you put in place in the last step.
  6. In your project’s primary assembly (the executable, or equivalent), check each of the Prism and Unity assemblies in the references and ensure that they have the property “Copy Local” set to “True”
    image
  7. Open your project’s config file and remove the text “, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35” where ever you find it.
    1. Since you rebuilt the dlls for .NET 4.0, you don’t have them signed by MS. This change allows the program to accept the latest unsigned assemblies
  8. Rebuild and run!

Last edited Oct 4, 2010 at 1:39 AM by sethmorris, version 1

Comments

No comments yet.