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

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

问题描述

我目前正在为 .NET 4 Client Profile 开发一个应用程序,因为这是通过 Windows 更新出现在大多数家庭计算机上的版本.

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.

但是,我无法添加对 System.Web.dll 的引用,因为它在此版本中不存在 - 我该怎么办?

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

将 System.Web.dll 与我的应用程序一起部署是个好主意,还是行不通?我真的需要 HTTP 连接等等,所以我不能修改我的应用程序作为解决方法.将我的应用程序定位到 .NET 4(没有客户端配置文件)可能是一种可能性,还是在只有客户端配置文件的计算机上不起作用?

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 客户端配置文件,因为这是将出现在大多数家用电脑通过 Windows 更新

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

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

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.

因此,您不妨以完整的 .NET 4 框架为目标.

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

可以找到操作系统和 .NET 框架版本之间的链接此处.复选标记表示开箱即用的版本,加号表示可以安装.

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.

另请注意,4.5、4.6 和 4.6.1 都是就地更新,这意味着具有其中任何一个的系统也被视为具有 4.0.

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天全站免登陆