微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

我将.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

原文地址:https://www.jb51.cc/csharp/94302.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐