Does Enterprise Library VAB 5.0 support the portable class library available in Visual Studio 2012?
I have created a Portable Class Library in Visual Studio 2012 targeting frameworks:
- .NET Framework 4.5
- Silverlight 5
I now want to add validation support for the classes in this library.
NuGet package: Enterprise Library 5.0 - Validation Application Block.
Install failed. Rolling back...
Could not install package 'CommonServiceLocator 1.0'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.0,Profile=Profile24', but the package does not contain any assembly references that are compatible with that framework.
For more information, contact the package author.
Installed "Silverlight Integration Pack - May 2011".
Added Reference to:
But as soon as I add a validation attribute (e.g. [StringLengthValidator(5)] ) i get this build error:
The type 'System.ComponentModel.DataAnnotations.ValidationAttribute' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.ComponentModel.DataAnnotations, Version=126.96.36.199, Culture=neutral, PublicKeyToken=ddd0da4d3e678217'.
Thank you for any input,