2010-11-02 42 views
3

我得到了交戰。如何使用組件System.web 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 

我該怎麼辦?我需要的System.Web

編輯:

創建.dll文件。在DLL我使用System.web - 沒有錯誤!

當我將.dll插入到項目中,並且生成.dll消失,並且VS看不到更多。

+0

+1命名組件「DudePro」 – 2013-05-10 16:09:47

回答

8

您的項目可能是針對.NET Client Profile,其中不包括System.Web。您需要通過使用項目屬性的「應用程序」選項卡上的「目標框架」字段來更改項目以定位「完整配置文件」。

+0

Phil Devaney,feanks – Mediator 2010-11-02 13:45:54