In my project I have a library shared between WP7 and WP8 clients. The library contains views, view models and other interesting data.
I also want to use the latest version of Windows Phone Toolkit.
The problem that I run into is that while my xaml code is compatible, I get a runtime error, because LongListSelector exists in different assemblies in Windows Phone Toolkit for wp7 and in framework code for WP8.
in wp7:
xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
in wp8:
xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
How can I solve this conundrum without needing to duplicate my xamls for both platforms?