Is there any way I can implement IValidatableObject on Portable Class Library Project?

There’s probably not an easy solution for this. You can create your own interface in a Portable Class Library with the same functionality. However that would be a different interface so other frameworks that use DataAnnotations (ASP.NET MVC and Entity Framework I think) wouldn’t use your version. To get around that problem, you could create … Read more

Convert a PCL to a regular Class Library

The differences will be in your .proj file. Having tried it myself you will have to do all of the following; Remove the <TargetFrameworkProfile> element Remove the <ProjectTypeGuids> element Change where you have #2 (below) for what I shown in #1 1. Regular class library <Import Project=”$(MSBuildToolsPath)\Microsoft.CSharp.targets” /> 2. Portable class library <Import Project=”$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets” />

Build error: You must add a reference to System.Runtime

To implement the fix, first expand out the existing web.config compilation section that looks like this by default: <compilation debug=”true” targetFramework=”4.5″/> Once expanded, I then added the following new configuration XML as I was instructed: <assemblies> <add assembly=”System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a” /> </assemblies> The final web.config tags should look like this: <compilation debug=”true” targetFramework=”4.5″> <assemblies> … Read more