As promised, I have updated the Prism Quick Start Kit and added a WPF quick-start solution and WPF project templates. You can download the latest release here. In the zip you’ll find four project templates (Shell and Module templates for WPF and Silverlight) and two quick-start solutions, one each for WPF and Silverlight.
To install the templates, copy the project template zip files to your Visual Studio C# template folder. On my system the templates go here:
“My Documents\Visual Studio 2008\Templates\ProjectTemplates\Visual C#”
You should also remove the previous Prism templates if you have installed them. Next, register the templates with Visual Studio by running
devenv.exe /installvstemplates
in a Visual Studio command prompt window (as admin).
When you run Visual Studio and create a new project, you should see the four templates show up in the Visual C# node.
Using the Prism project templates should be pretty straightforward. Couple of things to note though:
The Silverlight and WPF quick-start solutions are essentially the same – the only difference between the two is that the WPF shell includes a menu-like button that’s hooked up the shell’s Exit command. I also updated the quick-start solutions to include a style that can be applied to ContentControl regions so that a banner containing the region name is displayed. This is just to make it easier for folks to see where each region is located within the shell.
The quick-start solutions are meant to provide a skeletal solution on which you can build real application. They are not very interesting as a standalone app, but if you’re curious to see what it looks like you can run the Silverlight version of the quick-start solution here.
PingBack from http://www.alvinashcraft.com/2009/06/16/dew-dump-june-16-2009/
I had a very scary moment after following the above instructions which appeared to go well until I started Visual Studio 2008 SP1. When I went to "New Project" I got an error message saying no templates could be found and I should consult the event viewer. Despite the message the new project dialogue opened, but with JUST the PRISM templates showing. All the normal Visual Studio templates had completely vanished!
Fortunately shutting down Visual Studio and then restarting it brought them all back and the PRISM templates are listed under "My templates" where the others are listed under "Visual Studio Installed Templates". But for a moment there it was pretty scary.
@irascian - Eek! I've had that happen to me too, even when I haven't been installing templates. Not sure what's going on there. Glad it started working again though.
Thank you for submitting this cool story - Trackback from DotNetShoutout
David,
When I try to load up the quickstart I get a
Unknown build error, 'The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)'
Any idea why?
@truedarkside - I presume this is for the Silverlight quick start solution? Did you update the references to the Prism Silverlight assemblies that you built on your system? I have seen this error when WPF and Silverlight assemblies have been mixed up. Hope this helps...