System.Web程序集是不是在.NET 4.0中

编程入门 行业动态 更新时间:2024-10-23 04:33:59
本文介绍了System.Web程序集是不是在.NET 4.0中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我更新.NET从 3.5 到 4.0 的版本,但更新后装配的System.Web 不起作用了。

I updated .NET from 3.5 to 4.0 version, but after updating the assembly System.Web doesn't work any more.

我收到以下错误:

警告1无法解析组件的System.Web。该组件是不是在当前目标框架.NETFramework,版本= V4.0,外形=客户。请删除对程序集不是在目标的框架或考虑重新目标项目。

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 版本,它工作正常。我该如何解决这个问题?

Using the 3.5 version it works fine. How can I fix this?

推荐答案

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

Change the project from ClientProfile to full .NET 4.0

.NET Framework 4的客户端配置文件是.NET Framework的一个子集   4是用于客户端应用进行了优化。它提供的功能   对于大多数客户端应用程序,包括Windows presentation   基金会(WPF),Windows窗体,Windows通信基础   (WCF),和ClickOnce的特征。这使得更快的部署和   对于较小针对.NET应用程序安装包   Framework 4的客户端配置文件。

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.

请参阅Difference .NET4客户端配置文件和完整的框架下载之间

更多推荐

System.Web程序集是不是在.NET 4.0中

本文发布于:2023-11-12 11:56:09,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1581437.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:程序   Web   System   NET

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!