writing applications that target both wpf and silverlight with a single codebase

A while back, I wrote an MSDN article on writing multi-targeted programs with Prism.

https://msdn.microsoft.com/en-us/magazine/ee321573.aspx 

Hope you like it!