portable-class-library

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

情到浓时终转凉″ 提交于 2019-11-26 17:14:48
问题 I would like to ask about a doubt I have concerning to Portable Class Library. I'm developing a DAL Layer and I'm using Portable project for my business objects, this project is target to .Net Framework 4.03 and higher, SilverLight 4 and higher and .Net for Windows Store Apps. I would like to implement IValidatableObject interface on each of my business objects, but even when System.ComponentModel.DataAnnotations is available for the frameworks this project is targeted to, I haven´t access to

Building Portable Class Library Project in build server fails

偶尔善良 提交于 2019-11-26 16:43:07
问题 I've recently added some custom Portable Class Library projects to an application that is built in an build server. The build was working fine, but after that it stopped working and shows me the following messages: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(983, 5): warning MSB3644: The reference assemblies for framework ".NETPortable,Version=v4.0,Profile=Profile136" were not found. C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(1578, 5)

Convert a PCL to a regular Class Library

∥☆過路亽.° 提交于 2019-11-26 16:33:37
问题 I currently have a Portable Class Library whose code is entirely compatible with a regular Class Library without any modification. I was wondering if there was an existing software to do the conversion automatically ; I looked into the Visual Studio tools but could not find any suitable. Before writing my own I just wanted to be sure! 回答1: 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