Serializable attribute not found when adding Silverlight linked projects

Topics: Prism v2 - Silverlight 2, Prism v2 - Silverlight 3
Dec 23, 2009 at 2:12 PM


I have nice Prism WPF app running.  I am now attempting to get a similar Silverlight app working.  I've been slowly adding new silverlight library projects for each of my modules and then linking back to the original code in the "desktop" folder.  I came across my first compile problem when some of my classes have the [Serializable] attribute. 

At first glance it appears that Silverlight 2 (assume 3 also) does not support this attribute due to binary formatter issues etc.  So now this solution is not so simple.  I have to modify my existing code with [DataContracts] and who knows what else.

Has anybody else tried to create both WPF and Silverlight apps with more or less the same code base?

Thanks and Happy Holidays,