加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

c# – .net 4.0版本中找不到System.Web程序集

发布时间:2020-12-15 06:53:43 所属栏目:百科 来源:网络整理
导读:我将.NET从3.5版本升级到4.0版本,但是在更新程序集System.Web不再工作之后. 我收到以下错误: Warning 1 Could not resolve assembly “System.Web”. The assembly is not in the currently targeted framework “.NETFramework,Version=v4.0,Profile=Clien
我将.NET从3.5版本升级到4.0版本,但是在更新程序集System.Web不再工作之后.

我收到以下错误:

Warning 1 Could not resolve assembly “System.Web”. The assembly 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.

使用3.5版本它可以正常工作.如何解决这个问题?

解决方法

将项目从ClientProfile更改为完整的.NET 4.0

The .NET Framework 4 Client Profile is a subset of the .NET Framework
4 that is optimized for client applications. It provides functionality
for most client applications,including Windows Presentation
Foundation (WPF),Windows Forms,Windows Communication Foundation
(WCF),and ClickOnce features. This enables faster deployment and a
smaller install package for applications that target the .NET
Framework 4 Client Profile.

见Differences between Microsoft .NET 4.0 full Framework and Client Profile

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读