如何使用程序集System.web 4.0?

Med*_*tor 3 wpf c#-4.0

我得到了交战.

Warning 1 The referenced assembly "DudePro" could not be resolved because it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project. GroupInvater_vk
Run Code Online (Sandbox Code Playgroud)

我该怎么办?我需要System.web

编辑:

我创建.dll.IN dll我使用System.web - 没有错误!

当我将.dll插入项目并进行构建时,.dll会消失,VS看不到它.

Phi*_*ney 8

您的项目可能是针对.NET客户端配置文件,其中不包括System.Web.你需要改变你的项目为目标的完整资料,用你的项目的属性的应用程序选项卡上的目标框架领域.