Portable Class Library - you must add a reference to assembly 'System.Net, Version=2.0.5.0

折月煮酒 提交于 2019-12-06 15:59:58

KB2468871 enables portable libraries to run on 4.0, it does not enable them to build in Visual Studio.

The first error should go away if you add a reference to System.Net, 4.0.0.0. If it does not, then you're machine is missing a required patch.

If are using:

Visual Studio 2010

You need to install Portable Library Tools: http://visualstudiogallery.msdn.microsoft.com/b0e0b5e9-e138-410b-ad10-00cb3caf4981/. This will install a patch that will make this work.

Visual Studio 2012 or Visual Studio 2013

This should work out of the box, if not, then you install is likely in an incomplete state. Try repairing your installation.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!