I have a portable class library that tracks the following:
.NET + Silverlight + WinRT + WinPhone + Android + iOS
The name settings "System.ComponentModel.DataAnnotations" do not exist in WinPhone
So, I do not have access to this namespace in my codes
How can I solve this problem just like the "microsoft bcl portability package"
This package provides access to attributes and classes, such as "CallerMemberNameAttribute", but at run time it maps these classes to their equivalent implementation, if one exists.
from " http://www.nuget.org/packages/Microsoft.Bcl/ ":
These types are "unified" for their later version. For example, when working on the .NET Framework 4.5, the IProgress from this package will be displayed by the runtime as the same type as the one that is already available on the platform.
Yaser moradi
source share