.NET Framework 4客户端配置文件+ System.Web.dll? [英] .NET Framework 4 Client Profile + System.Web.dll?

查看:216
本文介绍了.NET Framework 4客户端配置文件+ System.Web.dll?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个.NET 4客户端配置文件的应用程序,因为这是通过Windows Update在大多数家用电脑上出现的版本。



然而,我不能添加对 System.Web.dll 的引用,因为它不存在这个版本 - 我该怎么办?



是否应用程序部署System.Web.dll是不错的选择?我真的需要HTTP连接和所有,所以我不能修改我的应用程序作为解决方法。将我的应用程序定位到.NET 4(没有客户端配置文件)也许是一种可能性,或者只是在仅有客户端配置文件的计算机上不起作用?

解决方案

NET 4客户端配置文件,因为这是
版本,将通过Windows Update在大多数
家庭计算机上出现


不是真的。默认情况下,任何Windows 10之前的安装目前不存在.NET 4(客户端配置文件)。例如,Windows 7随.NET 3.5 SP1而不是.NET 4.0。可能有Windows更新,但它是可选的。



因此,您也可以定位完整的.NET 4框架。



可以找到操作系统和.NET框架版本之间的链接这里。复选框表示一个版本可以开箱即可,加号表示可以安装。



另请注意,4.5,4.6和4.6.1都是放置更新,这意味着与其中任何一个的系统也被认为具有4.0。


I'm currently developing an application for .NET 4 Client Profile, as this is the version that will be present on most home computers through Windows Update.

However, I cannot add a reference to System.Web.dll as it does not exist in this version - what should I do?

Is it a good idea to deploy System.Web.dll along with my application, or won't that work? I really need HTTP connections and all, so I cannot modify my application as a workaround. Is targeting my application to .NET 4 (no client profile) perhaps a possibility or will that just not work on computers with only the Client Profile?

解决方案

NET 4 Client Profile, as this is the version that will be present on most home computers through Windows Update

Not really. .NET 4 (client profile or not) currently isn't present on any pre-Windows 10 installation by default. For example, Windows 7 comes with .NET 3.5 SP1, not .NET 4.0. There may be a windows update, but it is optional.

Therefore, you might as well target the full .NET 4 framework.

The link between operating systems and .NET framework versions can be found here. The checkmarks indicate that a version is available out of the box, plus sign means it can be installed.

Also note that 4.5, 4.6 and 4.6.1 are all in-place updates, meaning that a system with any of those is also considered to have 4.0.

这篇关于.NET Framework 4客户端配置文件+ System.Web.dll?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆