Prism-v5 Class Library and WPF 4.5

Topics: Prism v4 - WPF 4
Apr 12, 2015 at 7:27 AM
Good Day Everyone,

I have a question that I hope I can get an answer for. I am building an application with WPF that uses another project/solution and I want to be able to use Prism/Unity for both applications/solutions.

In other words, I have a library project that deals with connecting to physical devices and I want to keep it separate from the application that will use it. I want to use Prism/Unity in both projects and I don't know if there will be any integration issues between the two different projects.

Any information would be greatly appreciated.

Thank You,

Tim Savage
Apr 12, 2015 at 2:38 PM
Hi Tim,
It is very common to factor out common shared code into a class library that gets reused across modules and the shell within the same app or across apps. The main consideration would be whether that shared functionality can be constrained to only being used within a WPF or full .NET framework app, or whether it also needs to be portable to other XAML platforms like WinRT or Windows Phone or Xamarin. The latter constrains you a lot more. I'd recommend you check out our new version that is in work at http://github.com/prismlibrary/ - we have refactored as much as possible into a single PCL for the Prism.Core stuff and then have platform specific variants for the other XAML platforms.

Bottom line as long as the shared functionality is going to be used only in WPF or full .NET framework apps, you should have no problem.