I have a solution with wp7 and wp8 proyects. I share 90% of code between these 2 projects. The only thing I can not share is xaml files because there is a namespace that make this imposible and there is no conditional compilation in xaml. in wp7 the declaration is
xmlns:Command="clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.Extras.WP71"
and in wp8 is
xmlns:Command="clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.Extras.WP8"
Is there a way I can create a alias of these namespaces out of the xaml so I can share 100% my xaml between projects? or this is a posibility that mvvmlight assembly names are compiled as the same result assembly filename as other nugget libraries I´m using?
You should use the PCL version of the MVVM Light Toolkit.
As far as I know, they behave the same, but you will be sharing the same DLL and thus the same namespace
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.