我收到以下错误:
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版本它可以正常工作.如何解决这个问题?
解决方法
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